projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Print UTF-8 SI suffix only when allowed by the locale
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
list.c
diff --git
a/src/bin/lttng/commands/list.c
b/src/bin/lttng/commands/list.c
index eabeb8132ecd36c6e15fb996cb8bdba96b61249d..d43127d1d444b24c1675a07ec4cda908c058bcc6 100644
(file)
--- a/
src/bin/lttng/commands/list.c
+++ b/
src/bin/lttng/commands/list.c
@@
-1261,7
+1261,7
@@
void print_timer(const char *timer_name, uint32_t space_count, int64_t value)
}
if (value) {
}
if (value) {
- MSG("%" PRId64 "
µs", value
);
+ MSG("%" PRId64 "
%s", value, USEC_UNIT
);
} else {
MSG("inactive");
}
} else {
MSG("inactive");
}
@@
-1318,7
+1318,8
@@
static void print_channel(struct lttng_channel *channel)
if (blocking_timeout == -1) {
MSG("%sBlocking timeout: infinite", indent6);
} else {
if (blocking_timeout == -1) {
MSG("%sBlocking timeout: infinite", indent6);
} else {
- MSG("%sBlocking timeout: %" PRId64 " µs", indent6, blocking_timeout);
+ MSG("%sBlocking timeout: %" PRId64 " %s", indent6,
+ blocking_timeout, USEC_UNIT);
}
}
}
}
@@
-1616,7
+1617,7
@@
static enum cmd_error_code print_periodic_rotation_schedule(
goto end;
}
goto end;
}
- MSG(" timer period: %" PRIu64"
µs", value
);
+ MSG(" timer period: %" PRIu64"
%s", value, USEC_UNIT
);
ret = CMD_SUCCESS;
end:
return ret;
ret = CMD_SUCCESS;
end:
return ret;
This page took
0.024475 seconds
and
4
git commands to generate.