Skip to content

Commit

Permalink
cstyle
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Elling <Richard.Elling@RichardElling.com>
  • Loading branch information
richardelling committed Sep 6, 2020
1 parent ba626b2 commit f3b1d31
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions cmd/zpool_influxdb/zpool_influxdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f3b1d31

Please sign in to comment.