diff options
author | Daniel Willmann <daniel@totalueberwachung.de> | 2011-07-19 12:12:10 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-07-19 20:07:20 +0200 |
commit | fc83a36cbd00ea06ec7053b5fbe628556cc3d9c1 (patch) | |
tree | 0a2bdb0859754abd1c6199d0f6d84f8d2efac2a6 /openbsc/src/libctrl | |
parent | 31f5f71647a90300d70321daba6d5cd6c097df80 (diff) |
libctrl: Use inttypes.h macros to make uint64_t printfs portable.
Diffstat (limited to 'openbsc/src/libctrl')
-rw-r--r-- | openbsc/src/libctrl/control_if.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/libctrl/control_if.c b/openbsc/src/libctrl/control_if.c index 0e625cd79..91c69e094 100644 --- a/openbsc/src/libctrl/control_if.c +++ b/openbsc/src/libctrl/control_if.c @@ -22,6 +22,7 @@ */ #include <errno.h> +#include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -365,7 +366,7 @@ static char *get_all_rate_ctr_in_group(const struct rate_ctr_group *ctrg, int in return NULL; for (i=0;i<ctrg->desc->num_ctr;i++) { - counters = talloc_asprintf_append(counters, "\n%s.%u.%s %lu", + counters = talloc_asprintf_append(counters, "\n%s.%u.%s %"PRIu64, ctrg->desc->group_name_prefix, ctrg->idx, ctrg->desc->ctr_desc[i].name, get_rate_ctr_value(&ctrg->ctr[i], intv)); |