Use correct format strings

Both idle and til_or_since are defined as unsigned longs.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
master
Petr Šabata 2013-05-07 16:16:44 +02:00 committed by Christoph Lohmann
parent 7d3a822d38
commit 8308a0086f
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}