Source-Changes-HG archive

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

[src/trunk]: src/lib Redo previous by avoiding the casts and using PRIxREGIST...



details:   https://anonhg.NetBSD.org/src/rev/61adff2d9d17
branches:  trunk
changeset: 347622:61adff2d9d17
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Sep 06 07:45:41 2016 +0000

description:
Redo previous by avoiding the casts and using PRIxREGISTER instead

diffstat:

 lib/librumpclient/rumpclient.c |  10 +++++-----
 lib/librumpuser/rumpuser_sp.c  |   9 +++++----
 2 files changed, 10 insertions(+), 9 deletions(-)

diffs (61 lines):

diff -r 42d5e1be6fdc -r 61adff2d9d17 lib/librumpclient/rumpclient.c
--- a/lib/librumpclient/rumpclient.c    Tue Sep 06 07:32:39 2016 +0000
+++ b/lib/librumpclient/rumpclient.c    Tue Sep 06 07:45:41 2016 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpclient.c,v 1.66 2016/09/06 07:12:48 martin Exp $  */
+/*      $NetBSD: rumpclient.c,v 1.67 2016/09/06 07:45:41 martin Exp $  */
 
 /*
  * Copyright (c) 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -50,7 +50,7 @@
 #define USE_SIGNALFD
 #endif
 
-__RCSID("$NetBSD: rumpclient.c,v 1.66 2016/09/06 07:12:48 martin Exp $");
+__RCSID("$NetBSD: rumpclient.c,v 1.67 2016/09/06 07:45:41 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/mman.h>
@@ -590,9 +590,9 @@
                goto out;
 
        resp = rdata;
-       DPRINTF(("rumpsp syscall_resp: syscall %d error %d, rv: %ld/%ld\n",
-           sysnum, rv, (unsigned long)resp->rsys_retval[0],
-           (unsigned long)resp->rsys_retval[1]));
+       DPRINTF(("rumpsp syscall_resp: syscall %d error %d, rv: %"
+           PRIxREGISTER"/%"PRIxREGISTER"\n",
+           sysnum, rv, resp->rsys_retval[0], resp->rsys_retval[1]));
 
        memcpy(retval, &resp->rsys_retval, sizeof(resp->rsys_retval));
        rv = resp->rsys_error;
diff -r 42d5e1be6fdc -r 61adff2d9d17 lib/librumpuser/rumpuser_sp.c
--- a/lib/librumpuser/rumpuser_sp.c     Tue Sep 06 07:32:39 2016 +0000
+++ b/lib/librumpuser/rumpuser_sp.c     Tue Sep 06 07:45:41 2016 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpuser_sp.c,v 1.71 2016/09/06 07:32:39 martin Exp $ */
+/*      $NetBSD: rumpuser_sp.c,v 1.72 2016/09/06 07:45:41 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.71 2016/09/06 07:32:39 martin Exp $");
+__RCSID("$NetBSD: rumpuser_sp.c,v 1.72 2016/09/06 07:45:41 martin Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -691,8 +691,9 @@
        spc->spc_syscallreq = 0;
        lwproc_release();
 
-       DPRINTF(("rump_sp: got return value %d & %ld/%ld\n",
-           rv, (long)retval[0], (long)retval[1]));
+       DPRINTF(("rump_sp: got return value %d & %"PRIxREGISTER
+           "/%"PRIxREGISTER"\n",
+           rv, retval[0], retval[1]));
 
        send_syscall_resp(spc, rhdr->rsp_reqno, rv, retval);
 }



Home | Main Index | Thread Index | Old Index