Source-Changes-HG archive

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

[src/trunk]: src/lib/librumpclient Fix DPRINTF format



details:   https://anonhg.NetBSD.org/src/rev/5e7bcaf986a5
branches:  trunk
changeset: 817762:5e7bcaf986a5
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Sep 06 07:12:48 2016 +0000

description:
Fix DPRINTF format

diffstat:

 lib/librumpclient/rumpclient.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 80141a373cb1 -r 5e7bcaf986a5 lib/librumpclient/rumpclient.c
--- a/lib/librumpclient/rumpclient.c    Tue Sep 06 06:46:15 2016 +0000
+++ b/lib/librumpclient/rumpclient.c    Tue Sep 06 07:12:48 2016 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpclient.c,v 1.65 2015/01/17 19:34:50 justin Exp $  */
+/*      $NetBSD: rumpclient.c,v 1.66 2016/09/06 07:12:48 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.65 2015/01/17 19:34:50 justin Exp $");
+__RCSID("$NetBSD: rumpclient.c,v 1.66 2016/09/06 07:12:48 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/mman.h>
@@ -590,8 +590,9 @@
                goto out;
 
        resp = rdata;
-       DPRINTF(("rumpsp syscall_resp: syscall %d error %d, rv: %d/%d\n",
-           sysnum, rv, resp->rsys_retval[0], resp->rsys_retval[1]));
+       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]));
 
        memcpy(retval, &resp->rsys_retval, sizeof(resp->rsys_retval));
        rv = resp->rsys_error;



Home | Main Index | Thread Index | Old Index