2012-10-04 05:14:33

by Lucas De Marchi

[permalink] [raw]
Subject: [PATCH BlueZ 1/2] AVCTP: Remove hand-written function name from log

From: Lucas De Marchi <[email protected]>

Besides being hand-written, it was wrong which leads to confusion with
the AVDTP.
---
audio/avctp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/audio/avctp.c b/audio/avctp.c
index b7b3083..53c28ec 100644
--- a/audio/avctp.c
+++ b/audio/avctp.c
@@ -392,7 +392,7 @@ static void avctp_set_state(struct avctp *session, avctp_state_t new_state)

dev = manager_get_device(&session->server->src, &session->dst, FALSE);
if (dev == NULL) {
- error("avdtp_set_state(): no matching audio device");
+ error("%s(): No matching audio device", __func__);
return;
}

--
1.7.12.2



2012-10-04 08:26:03

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH BlueZ 1/2] AVCTP: Remove hand-written function name from log

Hi Lucas,

On Thu, Oct 04, 2012, Lucas De Marchi wrote:
> Besides being hand-written, it was wrong which leads to confusion with
> the AVDTP.
> ---
> audio/avctp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Both patches have been applied. Thanks.

Johan

2012-10-04 05:14:34

by Lucas De Marchi

[permalink] [raw]
Subject: [PATCH BlueZ 2/2] AVDTP: Remove hand-written function name from log

From: Lucas De Marchi <[email protected]>

---
audio/avdtp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/audio/avdtp.c b/audio/avdtp.c
index 8836ca1..7db3c02 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -770,7 +770,7 @@ static void avdtp_set_state(struct avdtp *session,
avdtp_get_peers(session, &src, &dst);
dev = manager_get_device(&src, &dst, FALSE);
if (dev == NULL) {
- error("avdtp_set_state(): no matching audio device");
+ error("%s(): No matching audio device", __func__);
return;
}

--
1.7.12.2