aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-11-24 11:10:52 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-11-24 11:24:11 +0100
commit74aa3523f3eb249aee9ac0def2f14dca6c99a355 (patch)
treeaf926b661bc131c339b91af98d3712182620aa7a /src
parent259a694ba7825edd234b5d61a876e368387ab48f (diff)
csn1: Log CSN_VARIABLE_ARRAY values as hex
Diffstat (limited to 'src')
-rw-r--r--src/csn1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/csn1.c b/src/csn1.c
index da674949..0a3c88c7 100644
--- a/src/csn1.c
+++ b/src/csn1.c
@@ -1217,7 +1217,7 @@ csnStreamDecoder(csnStream_t* ar, const CSN_DESCR* pDescr, struct bitvec *vector
while (count > 0)
{
*pui8 = bitvec_read_field(vector, readIndex, 8);
- LOGPC(DCSN1, LOGL_DEBUG, "%s = %u | ", pDescr->sz , (unsigned)*pui8);
+ LOGPC(DCSN1, LOGL_DEBUG, "%s = 0x%x | ", pDescr->sz , (unsigned)*pui8);
pui8++;
bit_offset += 8;
count--;
@@ -2508,7 +2508,7 @@ gint16 csnStreamEncoder(csnStream_t* ar, const CSN_DESCR* pDescr, struct bitvec
while (count > 0)
{
bitvec_write_field(vector, writeIndex, *pui8, 8);
- LOGPC(DCSN1, LOGL_DEBUG, "%s = %u | ", pDescr->sz , (unsigned)*pui8);
+ LOGPC(DCSN1, LOGL_DEBUG, "%s = 0x%x | ", pDescr->sz , (unsigned)*pui8);
pui8++;
bit_offset += 8;
remaining_bits_len -= 8;