2009-06-04 14:36:54

by João Paulo Rechi Vita

[permalink] [raw]
Subject: [PATCH] Fix some error messages in A2DP Source functions.

Make the messages text refer to correct function that lead to the error.
---
audio/a2dp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/audio/a2dp.c b/audio/a2dp.c
index 0d2c78d..2c4d047 100644
--- a/audio/a2dp.c
+++ b/audio/a2dp.c
@@ -1448,7 +1448,7 @@ unsigned int a2dp_source_resume(struct avdtp *session, struct a2dp_sep *sep,
g_idle_add((GSourceFunc) finalize_resume, setup);
break;
default:
- error("SEP in bad state");
+ error("SEP in bad state for resume");
goto failed;
}

@@ -1499,7 +1499,7 @@ unsigned int a2dp_source_suspend(struct avdtp *session, struct a2dp_sep *sep,
}
break;
default:
- error("SEP in bad state for resume");
+ error("SEP in bad state for suspend");
goto failed;
}

--
1.6.0.4



2009-06-04 14:48:44

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH] Fix some error messages in A2DP Source functions.

Hi,

On Thu, Jun 04, 2009, Jo?o Paulo Rechi Vita wrote:
> Make the messages text refer to correct function that lead to the error.
> ---
> audio/a2dp.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)

Merged and pushed upstream. Thanks.

Johan