summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-01-05 15:36:50 +0000
committerArthur de Jong <arthur@arthurdejong.org>2013-01-05 15:36:50 +0000
commit7a2b63fe7366e5dfa80bcd1e2b7157c25706ec8e (patch)
tree24406c44619a03f89aba499d1799fef97718e886
parent82010e23099d70b6b2b1fc04b301259a04269e39 (diff)
log hex values when debugging the protocol
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1896 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--common/nslcd-prot.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/nslcd-prot.h b/common/nslcd-prot.h
index fe34fe9..70acd53 100644
--- a/common/nslcd-prot.h
+++ b/common/nslcd-prot.h
@@ -2,7 +2,7 @@
nslcd-prot.h - helper macros for reading and writing in protocol streams
Copyright (C) 2006 West Consulting
- Copyright (C) 2006, 2007, 2009, 2010, 2012 Arthur de Jong
+ Copyright (C) 2006, 2007, 2009, 2010, 2012, 2013 Arthur de Jong
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -92,7 +92,7 @@ static void debug_dump(const void *ptr, size_t size)
}
#define WRITE_INT32(fp, i) \
- DEBUG_PRINT("WRITE_INT32 : var="__STRING(i)" int32=%d", (int)i); \
+ DEBUG_PRINT("WRITE_INT32 : var="__STRING(i)" int32=%08x", (int)i); \
tmpint32 = htonl((int32_t)(i)); \
WRITE(fp, &tmpint32, sizeof(int32_t))
@@ -171,7 +171,7 @@ static void debug_dump(const void *ptr, size_t size)
#define READ_INT32(fp, i) \
READ(fp, &tmpint32, sizeof(int32_t)); \
(i) = ntohl(tmpint32); \
- DEBUG_PRINT("READ_INT32 : var="__STRING(i)" int32=%d", (int)(i));
+ DEBUG_PRINT("READ_INT32 : var="__STRING(i)" int32==%08x", (int)(i));
/* read a string in a fixed-size "normal" buffer */
#define READ_STRING(fp, buffer) \