Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumpuser Can not print register_t with %d, cast to lo...



details:   https://anonhg.NetBSD.org/src/rev/09b786dc1e75
branches:  trunk
changeset: 817763:09b786dc1e75
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Sep 06 07:32:39 2016 +0000

description:
Can not print register_t with %d, cast to long and use %ld instead.

diffstat:

 lib/librumpuser/rumpuser_sp.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 5e7bcaf986a5 -r 09b786dc1e75 lib/librumpuser/rumpuser_sp.c
--- a/lib/librumpuser/rumpuser_sp.c     Tue Sep 06 07:12:48 2016 +0000
+++ b/lib/librumpuser/rumpuser_sp.c     Tue Sep 06 07:32:39 2016 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpuser_sp.c,v 1.70 2015/08/16 11:37:39 pooka Exp $  */
+/*      $NetBSD: rumpuser_sp.c,v 1.71 2016/09/06 07:32:39 martin Exp $ */
 
 /*
  * Copyright (c) 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -37,7 +37,7 @@
 #include "rumpuser_port.h"
 
 #if !defined(lint)
-__RCSID("$NetBSD: rumpuser_sp.c,v 1.70 2015/08/16 11:37:39 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_sp.c,v 1.71 2016/09/06 07:32:39 martin Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -691,8 +691,8 @@
        spc->spc_syscallreq = 0;
        lwproc_release();
 
-       DPRINTF(("rump_sp: got return value %d & %d/%d\n",
-           rv, retval[0], retval[1]));
+       DPRINTF(("rump_sp: got return value %d & %ld/%ld\n",
+           rv, (long)retval[0], (long)retval[1]));
 
        send_syscall_resp(spc, rhdr->rsp_reqno, rv, retval);
 }



Home | Main Index | Thread Index | Old Index