diff options
author | David Disseldorp <ddiss@suse.de> | 2015-11-27 18:37:47 +0100 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-11-28 21:23:13 -0800 |
commit | 8f90353950b2da8d877c6ac3dde5e1109257a117 (patch) | |
tree | 4ab2a9a3123aa67ce4916cfb93c4ddbc03132472 /drivers/target | |
parent | d94e5a61357a04938ce14d6033b4d33a3c5fd780 (diff) | |
download | op-kernel-dev-8f90353950b2da8d877c6ac3dde5e1109257a117.zip op-kernel-dev-8f90353950b2da8d877c6ac3dde5e1109257a117.tar.gz |
target/stat: print full t10_wwn.model buffer
Cut 'n paste error saw it only process sizeof(t10_wwn.vendor) characters.
Signed-off-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_stat.c b/drivers/target/target_core_stat.c index 273c72b..81a6b3e 100644 --- a/drivers/target/target_core_stat.c +++ b/drivers/target/target_core_stat.c @@ -246,7 +246,7 @@ static ssize_t target_stat_lu_prod_show(struct config_item *item, char *page) char str[sizeof(dev->t10_wwn.model)+1]; /* scsiLuProductId */ - for (i = 0; i < sizeof(dev->t10_wwn.vendor); i++) + for (i = 0; i < sizeof(dev->t10_wwn.model); i++) str[i] = ISPRINT(dev->t10_wwn.model[i]) ? dev->t10_wwn.model[i] : ' '; str[i] = '\0'; |