* [PATCH BlueZ] audio: Remove redundant variable gerr
@ 2012-07-27 7:44 Jaganath Kanakkassery
2012-07-27 7:44 ` [PATCH BlueZ] gdbus: Fix compilation error if macro "error" is defined Jaganath Kanakkassery
0 siblings, 1 reply; 5+ messages in thread
From: Jaganath Kanakkassery @ 2012-07-27 7:44 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Jaganath Kanakkassery
---
audio/gateway.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/audio/gateway.c b/audio/gateway.c
index 6162948..1c45753 100644
--- a/audio/gateway.c
+++ b/audio/gateway.c
@@ -381,7 +381,6 @@ static void get_incoming_record_cb(sdp_list_t *recs, int err,
{
struct audio_device *dev = user_data;
struct gateway *gw = dev->gateway;
- GError *gerr = NULL;
if (err < 0) {
error("Unable to get service record: %s (%d)", strerror(-err),
@@ -398,7 +397,7 @@ static void get_incoming_record_cb(sdp_list_t *recs, int err,
if (gw->version == 0)
goto fail;
- rfcomm_connect_cb(gw->incoming, gerr, dev);
+ rfcomm_connect_cb(gw->incoming, NULL, dev);
return;
fail:
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH BlueZ] gdbus: Fix compilation error if macro "error" is defined
2012-07-27 7:44 [PATCH BlueZ] audio: Remove redundant variable gerr Jaganath Kanakkassery
@ 2012-07-27 7:44 ` Jaganath Kanakkassery
2012-07-27 12:25 ` Lucas De Marchi
0 siblings, 1 reply; 5+ messages in thread
From: Jaganath Kanakkassery @ 2012-07-27 7:44 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Jaganath Kanakkassery
The variable "signature" used in error is not defined.
---
gdbus/object.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/gdbus/object.c b/gdbus/object.c
index 900e7ab..0f05234 100644
--- a/gdbus/object.c
+++ b/gdbus/object.c
@@ -645,8 +645,7 @@ static dbus_bool_t emit_signal_valist(DBusConnection *conn,
goto fail;
if (g_dbus_args_have_signature(args, signal) == FALSE) {
- error("%s.%s: expected signature'%s' but got '%s'",
- interface, name, args, signature);
+ error("signature does not match");
ret = FALSE;
goto fail;
}
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH BlueZ] gdbus: Fix compilation error if macro "error" is defined
2012-07-27 7:44 ` [PATCH BlueZ] gdbus: Fix compilation error if macro "error" is defined Jaganath Kanakkassery
@ 2012-07-27 12:25 ` Lucas De Marchi
2012-07-27 12:58 ` Luiz Augusto von Dentz
2012-08-01 10:17 ` Jaganath Kanakkassery
0 siblings, 2 replies; 5+ messages in thread
From: Lucas De Marchi @ 2012-07-27 12:25 UTC (permalink / raw)
To: Jaganath Kanakkassery; +Cc: linux-bluetooth
On Fri, Jul 27, 2012 at 4:44 AM, Jaganath Kanakkassery
<jaganath.k@samsung.com> wrote:
> The variable "signature" used in error is not defined.
> ---
> gdbus/object.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/gdbus/object.c b/gdbus/object.c
> index 900e7ab..0f05234 100644
> --- a/gdbus/object.c
> +++ b/gdbus/object.c
> @@ -645,8 +645,7 @@ static dbus_bool_t emit_signal_valist(DBusConnection *conn,
> goto fail;
>
> if (g_dbus_args_have_signature(args, signal) == FALSE) {
> - error("%s.%s: expected signature'%s' but got '%s'",
> - interface, name, args, signature);
> + error("signature does not match");
argh... indeed.
However I'd rather fix it by letting a similar message (without args,
which have a different type):
error("%s.%s: got unexpected signature '%s'",
interface, name,
dbus_message_get_signature(signal));
thanks
Lucas De Marchi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH BlueZ] gdbus: Fix compilation error if macro "error" is defined
2012-07-27 12:25 ` Lucas De Marchi
@ 2012-07-27 12:58 ` Luiz Augusto von Dentz
2012-08-01 10:17 ` Jaganath Kanakkassery
1 sibling, 0 replies; 5+ messages in thread
From: Luiz Augusto von Dentz @ 2012-07-27 12:58 UTC (permalink / raw)
To: Lucas De Marchi; +Cc: Jaganath Kanakkassery, linux-bluetooth
Hi Jaganath,
On Fri, Jul 27, 2012 at 3:25 PM, Lucas De Marchi
<lucas.demarchi@profusion.mobi> wrote:
> On Fri, Jul 27, 2012 at 4:44 AM, Jaganath Kanakkassery
> <jaganath.k@samsung.com> wrote:
>> The variable "signature" used in error is not defined.
>> ---
>> gdbus/object.c | 3 +--
>> 1 files changed, 1 insertions(+), 2 deletions(-)
>>
>> diff --git a/gdbus/object.c b/gdbus/object.c
>> index 900e7ab..0f05234 100644
>> --- a/gdbus/object.c
>> +++ b/gdbus/object.c
>> @@ -645,8 +645,7 @@ static dbus_bool_t emit_signal_valist(DBusConnection *conn,
>> goto fail;
>>
>> if (g_dbus_args_have_signature(args, signal) == FALSE) {
>> - error("%s.%s: expected signature'%s' but got '%s'",
>> - interface, name, args, signature);
>> + error("signature does not match");
>
> argh... indeed.
>
> However I'd rather fix it by letting a similar message (without args,
> which have a different type):
>
> error("%s.%s: got unexpected signature '%s'",
> interface, name,
> dbus_message_get_signature(signal));
Yep, the message itself can be keep, just fix what is broken.
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH BlueZ] gdbus: Fix compilation error if macro "error" is defined
2012-07-27 12:25 ` Lucas De Marchi
2012-07-27 12:58 ` Luiz Augusto von Dentz
@ 2012-08-01 10:17 ` Jaganath Kanakkassery
1 sibling, 0 replies; 5+ messages in thread
From: Jaganath Kanakkassery @ 2012-08-01 10:17 UTC (permalink / raw)
To: Lucas De Marchi; +Cc: linux-bluetooth
Hi Lucas,
--------------------------------------------------
From: "Lucas De Marchi" <lucas.demarchi@profusion.mobi>
Sent: Friday, July 27, 2012 5:55 PM
To: "Jaganath Kanakkassery" <jaganath.k@samsung.com>
Cc: <linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCH BlueZ] gdbus: Fix compilation error if macro "error" is
defined
> On Fri, Jul 27, 2012 at 4:44 AM, Jaganath Kanakkassery
> <jaganath.k@samsung.com> wrote:
>> The variable "signature" used in error is not defined.
>> ---
>> gdbus/object.c | 3 +--
>> 1 files changed, 1 insertions(+), 2 deletions(-)
>>
>> diff --git a/gdbus/object.c b/gdbus/object.c
>> index 900e7ab..0f05234 100644
>> --- a/gdbus/object.c
>> +++ b/gdbus/object.c
>> @@ -645,8 +645,7 @@ static dbus_bool_t emit_signal_valist(DBusConnection
>> *conn,
>> goto fail;
>>
>> if (g_dbus_args_have_signature(args, signal) == FALSE) {
>> - error("%s.%s: expected signature'%s' but got '%s'",
>> - interface, name, args, signature);
>> + error("signature does not match");
>
> argh... indeed.
>
> However I'd rather fix it by letting a similar message (without args,
> which have a different type):
>
> error("%s.%s: got unexpected signature '%s'",
> interface, name,
> dbus_message_get_signature(signal));
>
Ok, I will raise patch.
Thanks,
Jaganath
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-08-01 10:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-27 7:44 [PATCH BlueZ] audio: Remove redundant variable gerr Jaganath Kanakkassery
2012-07-27 7:44 ` [PATCH BlueZ] gdbus: Fix compilation error if macro "error" is defined Jaganath Kanakkassery
2012-07-27 12:25 ` Lucas De Marchi
2012-07-27 12:58 ` Luiz Augusto von Dentz
2012-08-01 10:17 ` Jaganath Kanakkassery
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.