Skip to content

Commit 760f40e

Browse files
ujfalusikv2019i
authored andcommitted
ASoC: SOF: ipc: Print 0x prefix for errors in ipc_trace/stream_message()
The dev_err() in ipc_trace_message() and ipc_stream_message() is missing the 0x prefix for the hexadecimal number when printed. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent 7c60d06 commit 760f40e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/soc/sof/ipc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ static void ipc_trace_message(struct snd_sof_dev *sdev, u32 msg_type)
442442
snd_sof_trace_update_pos(sdev, &posn);
443443
break;
444444
default:
445-
dev_err(sdev->dev, "error: unhandled trace message %x\n", msg_type);
445+
dev_err(sdev->dev, "error: unhandled trace message %#x\n", msg_type);
446446
break;
447447
}
448448
}
@@ -532,7 +532,7 @@ static void ipc_stream_message(struct snd_sof_dev *sdev, u32 msg_cmd)
532532
ipc_xrun(sdev, msg_id);
533533
break;
534534
default:
535-
dev_err(sdev->dev, "error: unhandled stream message %x\n",
535+
dev_err(sdev->dev, "error: unhandled stream message %#x\n",
536536
msg_id);
537537
break;
538538
}

0 commit comments

Comments
 (0)