From f3b1d31ca03f72f0a6a70bf906075dee41ac5649 Mon Sep 17 00:00:00 2001 From: Richard Elling Date: Sun, 6 Sep 2020 16:02:36 -0700 Subject: [PATCH] cstyle Signed-off-by: Richard Elling --- cmd/zpool_influxdb/zpool_influxdb.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/cmd/zpool_influxdb/zpool_influxdb.c b/cmd/zpool_influxdb/zpool_influxdb.c index d4de227352dc..71ffcb25381a 100644 --- a/cmd/zpool_influxdb/zpool_influxdb.c +++ b/cmd/zpool_influxdb/zpool_influxdb.c @@ -129,7 +129,8 @@ escape_string(char *s) * print key=value where value is a uint64_t */ static void -print_kv(char *key, uint64_t value) { +print_kv(char *key, uint64_t value) +{ printf("%s=%llu%c", key, (u_longlong_t)value & metric_value_mask, metric_data_type); } @@ -359,12 +360,12 @@ print_summary_stats(nvlist_t *nvroot, const char *pool_name, print_kv(",free", vs->vs_space - vs->vs_alloc); print_kv(",size", vs->vs_space); print_kv(",read_bytes", vs->vs_bytes[ZIO_TYPE_READ]); - print_kv(",read_errors", vs->vs_read_errors), - print_kv(",read_ops", vs->vs_ops[ZIO_TYPE_READ]), - print_kv(",write_bytes", vs->vs_bytes[ZIO_TYPE_WRITE]), - print_kv(",write_errors", vs->vs_write_errors), - print_kv(",write_ops", vs->vs_ops[ZIO_TYPE_WRITE]), - print_kv(",checksum_errors", vs->vs_checksum_errors), + print_kv(",read_errors", vs->vs_read_errors); + print_kv(",read_ops", vs->vs_ops[ZIO_TYPE_READ]); + print_kv(",write_bytes", vs->vs_bytes[ZIO_TYPE_WRITE]); + print_kv(",write_errors", vs->vs_write_errors); + print_kv(",write_ops", vs->vs_ops[ZIO_TYPE_WRITE]); + print_kv(",checksum_errors", vs->vs_checksum_errors); print_kv(",fragmentation", vs->vs_fragmentation); printf(" %llu\n", (u_longlong_t)timestamp); return (0);