target: don't always say "ipv6" as address type
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 31 Jan 2013 08:17:54 +0000 (11:17 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 13 Feb 2013 19:27:51 +0000 (11:27 -0800)
commit07ea81b6f7d6345e146245c4964640a5a27b5cc5
treeac51b8c8445ace138389659e2994fa154b04e426
parentd0c8b259f8970d39354c1966853363345d401330
target: don't always say "ipv6" as address type

"lstat->last_intr_fail_ip_addr" is an array inside the "lstat" struct.
It's never NULL so we always print "ipv6\n" here.  The test should be
"if (lstat->last_intr_fail_ip_family == AF_INET6)".

We don't need the temporary buffer either.  We could print directly into
"page".

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_stat.c