From: Dimitris Papastamos Date: Thu, 24 Feb 2011 17:09:32 +0000 (+0000) Subject: ASoC: soc-dapm: Include quotes around contents in debugfs entries X-Git-Tag: v3.12-rc1~3017^2~1145^2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67f5ed6e716bf9b574c8cbe04765171de5d4d0fe;p=kernel%2Fkernel-generic.git ASoC: soc-dapm: Include quotes around contents in debugfs entries Sometimes the name of the control switch of a dapm route contains spaces which makes it impossible to distinguish it from the source widget. Add quotes around the names of the widgets to makes these parsable. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 200ae7c..b8e6ab7 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -1242,7 +1242,7 @@ static ssize_t dapm_widget_power_read_file(struct file *file, if (p->connect) ret += snprintf(buf + ret, PAGE_SIZE - ret, - " in %s %s\n", + " in \"%s\" \"%s\"\n", p->name ? p->name : "static", p->source->name); } @@ -1252,7 +1252,7 @@ static ssize_t dapm_widget_power_read_file(struct file *file, if (p->connect) ret += snprintf(buf + ret, PAGE_SIZE - ret, - " out %s %s\n", + " out \"%s\" \"%s\"\n", p->name ? p->name : "static", p->sink->name); }