All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Drop trailing newline from DBG() calls
@ 2011-02-23 13:28 Anderson Lizardo
  2011-02-23 18:11 ` [PATCH] Fix DBG() calls with bogus messages Anderson Lizardo
  2011-02-23 18:12 ` [PATCH] Drop trailing newline from DBG() calls Anderson Lizardo
  0 siblings, 2 replies; 4+ messages in thread
From: Anderson Lizardo @ 2011-02-23 13:28 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Anderson Lizardo

---
 audio/telephony-ofono.c |    2 +-
 plugins/service.c       |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/audio/telephony-ofono.c b/audio/telephony-ofono.c
index 0a7f0bd..b9fb0f1 100644
--- a/audio/telephony-ofono.c
+++ b/audio/telephony-ofono.c
@@ -1116,7 +1116,7 @@ static void get_modems_reply(DBusPendingCall *call, void *user_data)
 	DBusMessage *reply;
 	DBusMessageIter iter, entry;
 
-	DBG("list_modem_reply is called\n");
+	DBG("list_modem_reply is called");
 	reply = dbus_pending_call_steal_reply(call);
 
 	dbus_error_init(&err);
diff --git a/plugins/service.c b/plugins/service.c
index f44aa92..4e4db81 100644
--- a/plugins/service.c
+++ b/plugins/service.c
@@ -172,13 +172,13 @@ static void element_end(GMarkupParseContext *context,
 			int ret = sdp_attr_add(ctx_data->record, ctx_data->attr_id,
 							ctx_data->stack_head->data);
 			if (ret == -1)
-				DBG("Trouble adding attribute\n");
+				DBG("Trouble adding attribute");
 
 			ctx_data->stack_head->data = NULL;
 			sdp_xml_data_free(ctx_data->stack_head);
 			ctx_data->stack_head = NULL;
 		} else {
-			DBG("No data for attribute 0x%04x\n", ctx_data->attr_id);
+			DBG("No data for attribute 0x%04x", ctx_data->attr_id);
 		}
 		return;
 	}
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] Fix DBG() calls with bogus messages
  2011-02-23 13:28 [PATCH] Drop trailing newline from DBG() calls Anderson Lizardo
@ 2011-02-23 18:11 ` Anderson Lizardo
  2011-02-24 18:28   ` Johan Hedberg
  2011-02-23 18:12 ` [PATCH] Drop trailing newline from DBG() calls Anderson Lizardo
  1 sibling, 1 reply; 4+ messages in thread
From: Anderson Lizardo @ 2011-02-23 18:11 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Anderson Lizardo

Remove unnecessary trailing newlines (already added by DBG()) and
rewrite debug messages to become more useful.
---
 audio/telephony-ofono.c |    2 +-
 plugins/service.c       |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/audio/telephony-ofono.c b/audio/telephony-ofono.c
index 0a7f0bd..ef4ede7 100644
--- a/audio/telephony-ofono.c
+++ b/audio/telephony-ofono.c
@@ -1116,7 +1116,7 @@ static void get_modems_reply(DBusPendingCall *call, void *user_data)
 	DBusMessage *reply;
 	DBusMessageIter iter, entry;
 
-	DBG("list_modem_reply is called\n");
+	DBG("");
 	reply = dbus_pending_call_steal_reply(call);
 
 	dbus_error_init(&err);
diff --git a/plugins/service.c b/plugins/service.c
index f44aa92..d73cdea 100644
--- a/plugins/service.c
+++ b/plugins/service.c
@@ -172,13 +172,14 @@ static void element_end(GMarkupParseContext *context,
 			int ret = sdp_attr_add(ctx_data->record, ctx_data->attr_id,
 							ctx_data->stack_head->data);
 			if (ret == -1)
-				DBG("Trouble adding attribute\n");
+				DBG("Could not add attribute 0x%04x",
+							ctx_data->attr_id);
 
 			ctx_data->stack_head->data = NULL;
 			sdp_xml_data_free(ctx_data->stack_head);
 			ctx_data->stack_head = NULL;
 		} else {
-			DBG("No data for attribute 0x%04x\n", ctx_data->attr_id);
+			DBG("No data for attribute 0x%04x", ctx_data->attr_id);
 		}
 		return;
 	}
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Drop trailing newline from DBG() calls
  2011-02-23 13:28 [PATCH] Drop trailing newline from DBG() calls Anderson Lizardo
  2011-02-23 18:11 ` [PATCH] Fix DBG() calls with bogus messages Anderson Lizardo
@ 2011-02-23 18:12 ` Anderson Lizardo
  1 sibling, 0 replies; 4+ messages in thread
From: Anderson Lizardo @ 2011-02-23 18:12 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Anderson Lizardo

Hi Johan,

On Wed, Feb 23, 2011 at 10:28 AM, Anderson Lizardo
<anderson.lizardo@openbossa.org> wrote:
> ---
>  audio/telephony-ofono.c |    2 +-
>  plugins/service.c       |    4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)

Please ignore this patch, it was superseded by the one titled "Fix
DBG() calls with bogus messages".

Regards,
-- 
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Fix DBG() calls with bogus messages
  2011-02-23 18:11 ` [PATCH] Fix DBG() calls with bogus messages Anderson Lizardo
@ 2011-02-24 18:28   ` Johan Hedberg
  0 siblings, 0 replies; 4+ messages in thread
From: Johan Hedberg @ 2011-02-24 18:28 UTC (permalink / raw)
  To: Anderson Lizardo; +Cc: linux-bluetooth

Hi Lizardo,

On Wed, Feb 23, 2011, Anderson Lizardo wrote:
> Remove unnecessary trailing newlines (already added by DBG()) and
> rewrite debug messages to become more useful.
> ---
>  audio/telephony-ofono.c |    2 +-
>  plugins/service.c       |    5 +++--
>  2 files changed, 4 insertions(+), 3 deletions(-)

Pushed upstream. Thanks.

Johan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-24 18:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-23 13:28 [PATCH] Drop trailing newline from DBG() calls Anderson Lizardo
2011-02-23 18:11 ` [PATCH] Fix DBG() calls with bogus messages Anderson Lizardo
2011-02-24 18:28   ` Johan Hedberg
2011-02-23 18:12 ` [PATCH] Drop trailing newline from DBG() calls Anderson Lizardo

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.