soc: qcom: cmd-db: Use 5 digits for printing address
Subsystems (2)
PATCH 1/1 soc: qcom: cmd-db: Use 5 digits for printing address
The top few bits aren't relevant to pad out because they're always zero. Let's just print 5 digits instead of 8 so that it's a little shorter and more readable.
Suggested-by Lina Iyer <[email protected]>
Signed-off-by Stephen Boyd <[email protected]>
--- drivers/soc/qcom/cmd-db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/qcom/cmd-db.c +1 -1
@@ -278,7 +278,7 @@ static int cmd_db_debugfs_dump(struct seq_file *seq, void *p) ent =rsc_to_entry_header (rsc);for (j =0 ; j <le16_to_cpu (rsc->cnt); j++, ent++) { -seq_printf (seq,"0x%08x: %*pEp" ,le32_to_cpu (ent->addr), +seq_printf (seq,"0x%05x: %*pEp" ,le32_to_cpu (ent->addr), (int )sizeof (ent->id), ent->id); len =le16_to_cpu (ent->len);
base-commit: d6815c5c43d4f9d18e557d27fd27ae8d9cfd450c
prerequisite-patch-id: fc235b174200bb1b24876628a89a841d1c2e4aad
Signature · 1 line
Sent by a computer, using git, on the internet
Quoted 6 lines · Stephen Boyd
The top few bits aren't relevant to pad out because they're always zero. Let's just print 5 digits instead of 8 so that it's a little shorter and more readable.
Suggested-by Lina Iyer <[email protected]>Signed-off-by Stephen Boyd <[email protected]>
Reviewed-by Lina Iyer <[email protected]>