On Tue, 29 Jul 2008 18:20:25 +0300
Doron Shoham <[EMAIL PROTECTED]> wrote:
> Tomo - please note that the I_T nexus id is in hex but the tgtadm
> accepts only decimal values. Please change the I_T nexus id to
> decimal.
Ah, thanks a lot! I didn't notice this at all.
I've applied the following patch.
=
From: FUJITA Tomonori <[EMAIL PROTECTED]>
Subject: [PATCH] use decimal notation for the id of I_T nexus in the show option
Now we use hexadecimal notation but it's confusing since we use
decimal notation for other things in the show option.
Reported-by: Doron Shoham <[EMAIL PROTECTED]>
Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]>
---
usr/target.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/usr/target.c b/usr/target.c
index 7abaa54..0ae1b3e 100644
--- a/usr/target.c
+++ b/usr/target.c
@@ -1549,7 +1549,7 @@ int tgt_target_show_all(char *buf, int rest)
shprintf(total, buf, rest, _TAB1 "I_T nexus information:\n");
list_for_each_entry(nexus, &target->it_nexus_list,
nexus_siblings) {
- shprintf(total, buf, rest, _TAB2 "I_T nexus: %" PRIx64
"\n",
+ shprintf(total, buf, rest, _TAB2 "I_T nexus: %" PRIu64
"\n",
nexus->itn_id);
if (nexus->info)
shprintf(total, buf, rest, "%s", nexus->info);
--
1.5.4.2
_______________________________________________
Stgt-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/stgt-devel