ASoC: rsnd: error meesage indicates its port
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 15 Jan 2015 08:08:57 +0000 (08:08 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 15 Jan 2015 11:37:48 +0000 (11:37 +0000)
Current SRC/SSI output its error, but it desn't indicate
port number. it is un-understandable.
Let's indicate port number for it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/src.c
sound/soc/sh/rcar/ssi.c

index 8c22d2112a1d8a501112a8de84897ce669a60b87..81c182b4bad531c8afe3a071da4c9ad41c4d868f 100644 (file)
@@ -302,7 +302,8 @@ static int rsnd_src_quit(struct rsnd_mod *mod,
        rsnd_mod_hw_stop(mod);
 
        if (src->err)
-               dev_warn(dev, "src under/over flow err = %d\n", src->err);
+               dev_warn(dev, "%s[%d] under/over flow err = %d\n",
+                        rsnd_mod_name(mod), rsnd_mod_id(mod), src->err);
 
        return 0;
 }
index 9b89f6cf7680e8e68e366570c7624d85a625adb8..d26634bde908f202bbe6ba60d10516a86d0407e5 100644 (file)
@@ -327,7 +327,8 @@ static int rsnd_ssi_quit(struct rsnd_mod *mod,
        struct device *dev = rsnd_priv_to_dev(priv);
 
        if (ssi->err > 0)
-               dev_warn(dev, "ssi under/over flow err = %d\n", ssi->err);
+               dev_warn(dev, "%s[%d] under/over flow err = %d\n",
+                        rsnd_mod_name(mod), rsnd_mod_id(mod), ssi->err);
 
        ssi->cr_own     = 0;
        ssi->err        = 0;