From 8c4748ac339e119daf44c5401980e3e18afe31f4 Mon Sep 17 00:00:00 2001
From: Fredrik Thulin <fredrik@thulin.net>
Date: Thu, 20 Dec 2012 15:03:27 +0100
Subject: [PATCH] Debug output return values in hex, to match pkcs11.h.

---
 gck-rpc-dispatch.c | 2 +-
 gck-rpc-module.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gck-rpc-dispatch.c b/gck-rpc-dispatch.c
index 184fa41..0b7aa0d 100644
--- a/gck-rpc-dispatch.c
+++ b/gck-rpc-dispatch.c
@@ -730,7 +730,7 @@ static CK_RV proto_write_session_info(CallState * cs, CK_SESSION_INFO_PTR info)
 
 #define END_CALL \
 	_cleanup: \
-		debug (("ret: %d", _ret)); \
+		debug (("ret: 0x%x", _ret)); \
 		return _ret; \
 	}
 
diff --git a/gck-rpc-module.c b/gck-rpc-module.c
index 05ceabb..a7a522e 100644
--- a/gck-rpc-module.c
+++ b/gck-rpc-module.c
@@ -1054,7 +1054,7 @@ proto_read_sesssion_info(GckRpcMessage * msg, CK_SESSION_INFO_PTR info)
 #define END_CALL \
 	_cleanup: \
 		_ret = call_done (_cs, _ret); \
-		debug (("ret: %d", _ret)); \
+		debug (("ret: 0x%x", _ret)); \
 		return _ret; \
 	}
 
-- 
GitLab