From: David Disseldorp Date: Fri, 27 Nov 2015 17:37:47 +0000 (+0100) Subject: target/stat: print full t10_wwn.model buffer X-Git-Tag: submit/tizen/20160607.132125~1309^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f90353950b2da8d877c6ac3dde5e1109257a117;p=sdk%2Femulator%2Femulator-kernel.git 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 Signed-off-by: Nicholas Bellinger --- 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';