mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
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>
This commit is contained in:
parent
7253e4c956
commit
af6162155e
1 changed files with 4 additions and 2 deletions
|
@ -191,7 +191,8 @@ static void etm_set_prog(struct etm_drvdata *drvdata)
|
||||||
isb();
|
isb();
|
||||||
if (coresight_timeout_etm(drvdata, ETMSR, ETMSR_PROG_BIT, 1)) {
|
if (coresight_timeout_etm(drvdata, ETMSR, ETMSR_PROG_BIT, 1)) {
|
||||||
dev_err(drvdata->dev,
|
dev_err(drvdata->dev,
|
||||||
"timeout observed when probing at offset %#x\n", ETMSR);
|
"%s: timeout observed when probing at offset %#x\n",
|
||||||
|
__func__, ETMSR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,7 +210,8 @@ static void etm_clr_prog(struct etm_drvdata *drvdata)
|
||||||
isb();
|
isb();
|
||||||
if (coresight_timeout_etm(drvdata, ETMSR, ETMSR_PROG_BIT, 0)) {
|
if (coresight_timeout_etm(drvdata, ETMSR, ETMSR_PROG_BIT, 0)) {
|
||||||
dev_err(drvdata->dev,
|
dev_err(drvdata->dev,
|
||||||
"timeout observed when probing at offset %#x\n", ETMSR);
|
"%s: timeout observed when probing at offset %#x\n",
|
||||||
|
__func__, ETMSR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue