>>> <adheer.chandravan...@qlogic.com> schrieb am 09.07.2015 um 13:38 in >>> Nachricht <1436441896-7161-2-git-send-email-adheer.chandravan...@qlogic.com>: > From: Adheer Chandravanshi <adheer.chandravan...@qlogic.com> > > These changes are done in order to support ping operation for drivers > like bnx2i that use iscsiuio. > > Signed-off-by: Adheer Chandravanshi <adheer.chandravan...@qlogic.com> > --- > usr/iscsiadm.c | 38 +++++++++++++++++++++++++++++++------- > usr/iscsid_req.c | 38 +++++++++++++++++++++++++++++++++----- > usr/iscsid_req.h | 2 +- > usr/transport.c | 1 + > usr/transport.h | 3 +++ > usr/uip_mgmt_ipc.c | 38 +++++++++++++++++++++++++++++++++++++- > usr/uip_mgmt_ipc.h | 13 +++++++++++++ > 7 files changed, 119 insertions(+), 14 deletions(-) > > diff --git a/usr/iscsiadm.c b/usr/iscsiadm.c > index aa7cf07..495af3a 100644 > --- a/usr/iscsiadm.c > +++ b/usr/iscsiadm.c > @@ -3099,10 +3099,10 @@ static char *iscsi_ping_stat_strs[] = { > "No ARP response received", > }; > > -static char *iscsi_ping_stat_to_str(uint32_t status) > +static char *iscsi_ping_stat_to_str(int status) > { > if (status < 0 || status > ISCSI_PING_NO_ARP_RECEIVED) { > - log_error("Invalid ping status %u", status); > + log_error("Ping error: %s\n", strerror(status));
"status" does not look very much like "errno", but isn't strerror() defined for errno values? > return NULL; > } > [...] Regards, Ulrich -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscr...@googlegroups.com. To post to this group, send email to open-iscsi@googlegroups.com. Visit this group at http://groups.google.com/group/open-iscsi. For more options, visit https://groups.google.com/d/optout.