]> granicus.if.org Git - zfs/commitdiff
OpenZFS 9479 - fix wrong format specifier for vdev_id
authorAndriy Gapon <avg@FreeBSD.org>
Mon, 16 Apr 2018 07:08:13 +0000 (10:08 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 11 Jul 2018 22:53:02 +0000 (15:53 -0700)
Authored by: Andriy Gapon <avg@FreeBSD.org>
Reviewed by: Matt Ahrens <matt@delphix.com>
Reviewed by: Giuseppe Di Natale <guss80@gmail.com>
Reviewed by: George Melikov <mail@gmelikov.ru>
Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>
Approved by: Robert Mustacchi <rm@joyent.com>

OpenZFS-issue: https://www.illumos.org/issues/9479
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/20aa447c
Closes #7699

module/zfs/vdev.c

index a2f1f0658e95f5b978542d85155d06f678d380c5..6db6fbacb73568d2f7b204c55e824a8e80ecd23e 100644 (file)
@@ -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);