All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Jaganath Kanakkassery <jaganath.k@samsung.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH BlueZ v0] gdbus: Fix compilation error if macro "error" is defined
Date: Thu, 16 Aug 2012 10:49:09 +0300	[thread overview]
Message-ID: <20120816074909.GA29336@x220> (raw)
In-Reply-To: <1343816803-16228-1-git-send-email-jaganath.k@samsung.com>

Hi Jaganath,

On Wed, Aug 01, 2012, Jaganath Kanakkassery wrote:
> The variable "signature" used in error is not defined.
> ---
> v0 -> Made error message as per Lucas's suggestion
> 
>  gdbus/object.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/gdbus/object.c b/gdbus/object.c
> index 900e7ab..9689006 100644
> --- a/gdbus/object.c
> +++ b/gdbus/object.c
> @@ -645,8 +645,8 @@ 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("%s.%s: got unexpected signature '%s'", interface, name,
> +					dbus_message_get_signature(signal));
>  		ret = FALSE;
>  		goto fail;
>  	}

What's the reason for dropping printing of the value of "args"? I'd
think that's quite useful in figuring out what went wrong. Even if there
is a reason to drop it it has nothing to do with fixing the compilation
error due to undefined "signature" and should therefore be in its own
patch.

Johan

  parent reply	other threads:[~2012-08-16  7:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-01 10:26 [PATCH BlueZ v0] gdbus: Fix compilation error if macro "error" is defined Jaganath Kanakkassery
2012-08-13 14:03 ` Lucas De Marchi
2012-08-14 14:24   ` Jaganath Kanakkassery
2012-08-16  7:49 ` Johan Hedberg [this message]
2012-08-16 12:01   ` Jaganath Kanakkassery
2012-08-16 12:30     ` Johan Hedberg
2012-08-16 12:48       ` Jaganath Kanakkassery

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120816074909.GA29336@x220 \
    --to=johan.hedberg@gmail.com \
    --cc=jaganath.k@samsung.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.