From 00cc35079eeac6e767d5375edfb9c48e58806c48 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sat, 1 Aug 2015 20:43:51 +0000 Subject: [PATCH] eventfd: print first argument as unsigned int * eventfd.c (do_eventfd): Explicitly cast initial value to unsigned int. --- eventfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eventfd.c b/eventfd.c index ec606cb2..0e22c2b7 100644 --- a/eventfd.c +++ b/eventfd.c @@ -3,7 +3,7 @@ static int do_eventfd(struct tcb *tcp, int flags_arg) { - tprintf("%lu", tcp->u_arg[0]); + tprintf("%u", (unsigned int) tcp->u_arg[0]); if (flags_arg >= 0) { tprints(", "); printflags(open_mode_flags, tcp->u_arg[flags_arg], "O_???"); -- 2.40.0