diff options
author | Angela Stegmaier <angelabaker@ti.com> | 2016-09-28 17:02:44 -0500 |
---|---|---|
committer | Angela Stegmaier <angelabaker@ti.com> | 2016-09-29 10:17:45 -0500 |
commit | 6c2b64342cbd0317527a0924140566b2446488f5 (patch) | |
tree | d9d3f2aadd785da9c646a102b504fbe0d6173a18 | |
parent | c179a1f4a102fc0c2b72da4db87753c8e523d639 (diff) | |
download | ipc-6c2b64342cbd0317527a0924140566b2446488f5.tar.gz |
QNX: NameServer: Fix Debug Trace in NameServer_add3.43.03.05ipc-3.43-next3.43
Fix a trace in NameServer_add which was assuming a 32-bit aligned
pointer, but the pointer may not be aligned. So, print only the
first byte, as the size of the entry is varaible anyway.
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
-rw-r--r-- | qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/NameServer_daemon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/NameServer_daemon.c b/qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/NameServer_daemon.c index b94caa4..425b067 100644 --- a/qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/NameServer_daemon.c +++ b/qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/NameServer_daemon.c @@ -692,10 +692,10 @@ Ptr NameServer_add(NameServer_Handle handle, String name, Ptr buf, UInt len) handle->count++; + /* Only print a single byte of buf. Address may not be 32-bit aligned */ GT_2trace(curTrace, GT_1CLASS, "NameServer_add: Entered key: '%s', data: 0x%x", - name, *(UInt32 *)buf); - + name, *(UInt8 *)buf); exit: pthread_mutex_unlock(&handle->gate); |