]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
coresight: etm3x: making error message unambiguous
authorMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 31 Aug 2015 17:48:46 +0000 (11:48 -0600)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Fri, 23 Oct 2015 13:35:44 +0000 (07:35 -0600)
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>
drivers/hwtracing/coresight/coresight-etm3x.c

index 87374b3388ad137fc957c98b454dd22bc29ff660..d630b7ece73521ccf8cd7b320ebd75ecc92eb1d3 100644 (file)
@@ -191,7 +191,8 @@ static void etm_set_prog(struct etm_drvdata *drvdata)
        isb();
        if (coresight_timeout_etm(drvdata, ETMSR, ETMSR_PROG_BIT, 1)) {
                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();
        if (coresight_timeout_etm(drvdata, ETMSR, ETMSR_PROG_BIT, 0)) {
                dev_err(drvdata->dev,
-                       "timeout observed when probing at offset %#x\n", ETMSR);
+                       "%s: timeout observed when probing at offset %#x\n",
+                       __func__, ETMSR);
        }
 }