diff mbox

topology: print error prefix on error message.

Message ID 1438961956-6239-2-git-send-email-liam.r.girdwood@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Liam Girdwood Aug. 7, 2015, 3:39 p.m. UTC
Let the user know it's an error.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
---
 src/topology/data.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Takashi Iwai Aug. 7, 2015, 4:07 p.m. UTC | #1
On Fri, 07 Aug 2015 17:39:16 +0200,
Liam Girdwood wrote:
> 
> Let the user know it's an error.
> 
> Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>

Applied, thanks.


Takashi

> ---
>  src/topology/data.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/topology/data.c b/src/topology/data.c
> index c768bc5..0901851 100644
> --- a/src/topology/data.c
> +++ b/src/topology/data.c
> @@ -384,7 +384,7 @@ int tplg_copy_data(struct tplg_elem *elem, struct tplg_elem *ref)
>  		break;
>  
>  	default:
> -		SNDERR("elem '%s': type %d private data not supported \n",
> +		SNDERR("error: elem '%s': type %d private data not supported \n",
>  			elem->id, elem->type);
>  		return -EINVAL;
>  	}
> -- 
> 2.1.4
>
diff mbox

Patch

diff --git a/src/topology/data.c b/src/topology/data.c
index c768bc5..0901851 100644
--- a/src/topology/data.c
+++ b/src/topology/data.c
@@ -384,7 +384,7 @@  int tplg_copy_data(struct tplg_elem *elem, struct tplg_elem *ref)
 		break;
 
 	default:
-		SNDERR("elem '%s': type %d private data not supported \n",
+		SNDERR("error: elem '%s': type %d private data not supported \n",
 			elem->id, elem->type);
 		return -EINVAL;
 	}