From e902ddb0f8c57ac8d5b7d64edc687a022d0b9b7f Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Mon, 16 Apr 2018 10:08:13 +0300 Subject: [PATCH] OpenZFS 9479 - fix wrong format specifier for vdev_id Authored by: Andriy Gapon Reviewed by: Matt Ahrens Reviewed by: Giuseppe Di Natale Reviewed by: George Melikov Ported-by: Brian Behlendorf Approved by: Robert Mustacchi OpenZFS-issue: https://www.illumos.org/issues/9479 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/20aa447c Closes #7699 --- module/zfs/vdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/vdev.c b/module/zfs/vdev.c index a2f1f0658e95..6db6fbacb735 100644 --- a/module/zfs/vdev.c +++ b/module/zfs/vdev.c @@ -156,7 +156,7 @@ vdev_dbgmsg_print_tree(vdev_t *vd, int indent) } zfs_dbgmsg("%*svdev %u: %s%s, guid: %llu, path: %s, %s", indent, - "", vd->vdev_id, vd->vdev_ops->vdev_op_type, + "", (int)vd->vdev_id, vd->vdev_ops->vdev_op_type, vd->vdev_islog ? " (log)" : "", (u_longlong_t)vd->vdev_guid, vd->vdev_path ? vd->vdev_path : "N/A", state);