summaryrefslogtreecommitdiffstats
path: root/sbin/camcontrol
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2013-10-30 14:13:15 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2013-10-30 14:13:15 +0000
commit46fc599e6613db02a8024301592f7430e1527578 (patch)
tree7d23610375c8c6df24b5ffb290acd05ee5028462 /sbin/camcontrol
parent14bec3e02667bdc413936089c9a3a4ab3bb8146d (diff)
downloadFreeBSD-src-46fc599e6613db02a8024301592f7430e1527578.zip
FreeBSD-src-46fc599e6613db02a8024301592f7430e1527578.tar.gz
printf() specifier updates to CAM to handle either 32-bit or 64-bit lun_id_t.
MFC after: 2 weeks
Diffstat (limited to 'sbin/camcontrol')
-rw-r--r--sbin/camcontrol/camcontrol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c
index 68c6d79..f3e1011 100644
--- a/sbin/camcontrol/camcontrol.c
+++ b/sbin/camcontrol/camcontrol.c
@@ -566,11 +566,11 @@ getdevtree(void)
}
fprintf(stdout, "%-33s at scbus%d "
- "target %d lun %d (",
+ "target %d lun %jx (",
tmpstr,
dev_result->path_id,
dev_result->target_id,
- dev_result->target_lun);
+ (uintmax_t)dev_result->target_lun);
need_close = 1;
OpenPOWER on IntegriCloud