aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zpool_influxdb/zpool_influxdb.c
diff options
context:
space:
mode:
authorDamian Szuberski <[email protected]>2022-02-21 04:20:00 +0100
committerGitHub <[email protected]>2022-02-20 19:20:00 -0800
commit806739f991aa0d3fc5a36989fff8d8ab8fddf78f (patch)
treec486b2dd5f9d9ade96b7e5e897193607fcaa241d /cmd/zpool_influxdb/zpool_influxdb.c
parente41013078a90d5790c737eec573ec376ca21a234 (diff)
Correct compilation errors reported by GCC 10/11
New `zfs_type_t` value `ZFS_TYPE_INVALID` is introduced. Variable initialization is now possible to make GCC happy. Reviewed by: Brian Behlendorf <[email protected]> Signed-off-by: szubersk <[email protected]> Closes #12167 Closes #13103
Diffstat (limited to 'cmd/zpool_influxdb/zpool_influxdb.c')
-rw-r--r--cmd/zpool_influxdb/zpool_influxdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zpool_influxdb/zpool_influxdb.c b/cmd/zpool_influxdb/zpool_influxdb.c
index 2d6859efb..57bb2ee7b 100644
--- a/cmd/zpool_influxdb/zpool_influxdb.c
+++ b/cmd/zpool_influxdb/zpool_influxdb.c
@@ -278,7 +278,7 @@ get_vdev_name(nvlist_t *nvroot, const char *parent_name)
vdev_type);
} else {
(void) snprintf(vdev_name, sizeof (vdev_name),
- "%s/%s-%llu",
+ "%.220s/%s-%llu",
parent_name, vdev_type, (u_longlong_t)vdev_id);
}
return (vdev_name);