From 8308a0086f3e79629734c3dcef3adcf03a990bf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Tue, 7 May 2013 16:16:44 +0200 Subject: [PATCH] Use correct format strings Both idle and til_or_since are defined as unsigned longs. Signed-off-by: Christoph Lohmann <20h@r-36.net> --- xssstate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xssstate.c b/xssstate.c index 57536b2..1eeca29 100644 --- a/xssstate.c +++ b/xssstate.c @@ -88,14 +88,14 @@ main(int argc, char *argv[]) { printf("0\n"); break; case ScreenSaverOff: - printf("%ld\n", info->til_or_since); + printf("%lu\n", info->til_or_since); break; case ScreenSaverDisabled: printf("-1\n"); break; } } else if (showidle) { - printf("%ld\n", info->idle); + printf("%lu\n", info->idle); }