Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

coresight: etm3x: making error message unambiguous

By adding the function name at the beginning of the error
message there is no doubt as to where the failing condition
occurred.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Mathieu Poirier and committed by
Greg Kroah-Hartman
af616215 7253e4c9

+4 -2
+4 -2
drivers/hwtracing/coresight/coresight-etm3x.c
··· 191 191 isb(); 192 192 if (coresight_timeout_etm(drvdata, ETMSR, ETMSR_PROG_BIT, 1)) { 193 193 dev_err(drvdata->dev, 194 - "timeout observed when probing at offset %#x\n", ETMSR); 194 + "%s: timeout observed when probing at offset %#x\n", 195 + __func__, ETMSR); 195 196 } 196 197 } 197 198 ··· 210 209 isb(); 211 210 if (coresight_timeout_etm(drvdata, ETMSR, ETMSR_PROG_BIT, 0)) { 212 211 dev_err(drvdata->dev, 213 - "timeout observed when probing at offset %#x\n", ETMSR); 212 + "%s: timeout observed when probing at offset %#x\n", 213 + __func__, ETMSR); 214 214 } 215 215 } 216 216