ASoC: SOF: ipc: Print 0x prefix for errors in ipc_trace/stream_message()
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Fri, 17 Sep 2021 08:58:23 +0000 (11:58 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 17 Sep 2021 12:17:44 +0000 (13:17 +0100)
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>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Link: https://lore.kernel.org/r/20210917085823.27222-3-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc.c

index 85435780b33a963f666e499629299167f56a0a80..c7ca62ef86533c8174ed2c4b456b38924796e7d9 100644 (file)
@@ -488,7 +488,7 @@ static void ipc_trace_message(struct snd_sof_dev *sdev, u32 msg_type)
                snd_sof_trace_update_pos(sdev, &posn);
                break;
        default:
-               dev_err(sdev->dev, "error: unhandled trace message %x\n", msg_type);
+               dev_err(sdev->dev, "error: unhandled trace message %#x\n", msg_type);
                break;
        }
 }
@@ -570,7 +570,7 @@ static void ipc_stream_message(struct snd_sof_dev *sdev, u32 msg_cmd)
                ipc_xrun(sdev, msg_id);
                break;
        default:
-               dev_err(sdev->dev, "error: unhandled stream message %x\n",
+               dev_err(sdev->dev, "error: unhandled stream message %#x\n",
                        msg_id);
                break;
        }