Skip to content

Commit 0d49eee

Browse files
lategoodbyegregkh
authored andcommitted
staging: vchiq_core: Add hex prefix to debugfs output
The number format of VCHIQ debugfs isn't always clear. So let's add a prefix for all hex values, in order to make things clear. Signed-off-by: Stefan Wahren <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 504b0e3 commit 0d49eee

File tree

1 file changed

+4
-4
lines changed
  • drivers/staging/vc04_services/interface/vchiq_arm

1 file changed

+4
-4
lines changed

drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3370,7 +3370,7 @@ vchiq_dump_shared_state(struct seq_file *f, struct vchiq_state *state,
33703370
};
33713371
int i;
33723372

3373-
seq_printf(f, " %s: slots %d-%d tx_pos=%x recycle=%x\n",
3373+
seq_printf(f, " %s: slots %d-%d tx_pos=0x%x recycle=0x%x\n",
33743374
label, shared->slot_first, shared->slot_last,
33753375
shared->tx_pos, shared->slot_queue_recycle);
33763376

@@ -3386,7 +3386,7 @@ vchiq_dump_shared_state(struct seq_file *f, struct vchiq_state *state,
33863386
}
33873387

33883388
for (i = 1; i < shared->debug[DEBUG_ENTRIES]; i++) {
3389-
seq_printf(f, " DEBUG: %s = %d(%x)\n",
3389+
seq_printf(f, " DEBUG: %s = %d(0x%x)\n",
33903390
debug_names[i], shared->debug[i], shared->debug[i]);
33913391
}
33923392
}
@@ -3414,7 +3414,7 @@ vchiq_dump_service_state(struct seq_file *f, struct vchiq_service *service)
34143414

34153415
if (service->public_fourcc != VCHIQ_FOURCC_INVALID)
34163416
scnprintf(remoteport + len2, sizeof(remoteport) - len2,
3417-
" (client %x)", service->client_id);
3417+
" (client 0x%x)", service->client_id);
34183418
} else {
34193419
strscpy(remoteport, "n/a", sizeof(remoteport));
34203420
}
@@ -3475,7 +3475,7 @@ void vchiq_dump_state(struct seq_file *f, struct vchiq_state *state)
34753475
seq_printf(f, "State %d: %s\n", state->id,
34763476
conn_state_names[state->conn_state]);
34773477

3478-
seq_printf(f, " tx_pos=%x(@%pK), rx_pos=%x(@%pK)\n",
3478+
seq_printf(f, " tx_pos=0x%x(@%pK), rx_pos=0x%x(@%pK)\n",
34793479
state->local->tx_pos,
34803480
state->tx_data + (state->local_tx_pos & VCHIQ_SLOT_MASK),
34813481
state->rx_pos,

0 commit comments

Comments
 (0)