summaryrefslogtreecommitdiff
path: root/accel-pppd/cli
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2012-09-04 20:29:18 +0200
committerKozlov Dmitry <xeb@mail.ru>2012-09-05 22:35:48 +0400
commitb4eec284b0814c01c575492af73dbe23ff81f5e8 (patch)
treed0bb188f1cd694f773b0cf26e00f4e2205311951 /accel-pppd/cli
parentfdeeb6f8547617a0478ffe847b76c46fa45487d0 (diff)
downloadaccel-ppp-b4eec284b0814c01c575492af73dbe23ff81f5e8.tar.gz
accel-ppp-b4eec284b0814c01c575492af73dbe23ff81f5e8.zip
Fix format string errors
Fix several errors and compiler warnings in format string arguments. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/cli')
-rw-r--r--accel-pppd/cli/std_cmd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/accel-pppd/cli/std_cmd.c b/accel-pppd/cli/std_cmd.c
index 01e0157..d2666d8 100644
--- a/accel-pppd/cli/std_cmd.c
+++ b/accel-pppd/cli/std_cmd.c
@@ -44,15 +44,15 @@ static int show_stat_exec(const char *cmd, char * const *fields, int fields_cnt,
hour = dt / (60 * 60);
dt %= 60 * 60;
- cli_sendv(client, "uptime: %i.%02i:%02i:%02i\r\n", day, hour, dt / 60, dt % 60);
+ cli_sendv(client, "uptime: %i.%02i:%02lu:%02lu\r\n", day, hour, dt / 60, dt % 60);
cli_sendv(client, "cpu: %i%%\r\n", triton_stat.cpu);
#ifdef MEMDEBUG
cli_send(client, "memory:\r\n");
cli_sendv(client, " rss/virt: %lu/%lu kB\r\n", vmrss * page_size_kb, vmsize * page_size_kb);
- cli_sendv(client, " arena: %lu kB\r\n", mi.arena / 1024);
- cli_sendv(client, " mmaped: %lu kB\r\n", mi.hblkhd / 1024);
- cli_sendv(client, " uordblks: %lu kB\r\n", mi.uordblks / 1024);
- cli_sendv(client, " fordblks: %lu kB\r\n", mi.fordblks / 1024);
+ cli_sendv(client, " arena: %i kB\r\n", mi.arena / 1024);
+ cli_sendv(client, " mmaped: %i kB\r\n", mi.hblkhd / 1024);
+ cli_sendv(client, " uordblks: %i kB\r\n", mi.uordblks / 1024);
+ cli_sendv(client, " fordblks: %i kB\r\n", mi.fordblks / 1024);
#else
cli_sendv(client, "mem(rss/virt): %lu/%lu kB\r\n", vmrss * page_size_kb, vmsize * page_size_kb);
#endif