Bug 27463 - improvements and clean ups
Summary: improvements and clean ups
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: logger (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: Cosimo Alfarano
QA Contact: Telepathy bugs list
URL: http://git.collabora.co.uk/?p=user/ka...
Whiteboard: review+
Keywords: patch
Depends on:
Blocks:
 
Reported: 2010-04-05 05:35 UTC by Cosimo Alfarano
Modified: 2010-04-05 09:51 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Cosimo Alfarano 2010-04-05 05:35:22 UTC
This branch fixes a couple of bugs and mostly clean ups debug messages and reduces debug noise
Comment 1 Simon McVittie 2010-04-05 08:19:37 UTC
> TplChannelText: show debug message only on non-empthy lists

Every Empathy developer's favourite typo. You mean empty :-)

> +  g_return_val_if_fail (!TPL_STR_EMPTY (chat_id), FALSE);

Not an objection, but if you depend on telepathy-glib (>= 0.11.0) you can use the macro tp_str_empty() :-)

> +        "Unable to acknowledge pending message %d for chanenl %s: not found",

That's not how you spell channel.


>          }
> +      else
> +        PATH_DEBUG (proxy, "msg_id %d acknowledged", msg_id);

Consistent brace usage, please (the "if" clause has {}, so the "else" needs them too)

Otherwise looks good.
Comment 2 Cosimo Alfarano 2010-04-05 08:38:52 UTC
>> TplChannelText: show debug message only on non-empthy lists
>Every Empathy developer's favourite typo. You mean empty :-)

fixed :)

>> +        "Unable to acknowledge pending message %d for chanenl %s: not found",
>That's not how you spell channel.

fixed.


> Consistent brace usage, please (the "if" clause has {}, so the "else" needs
them too)

fixed.


> Not an objection, but if you depend on telepathy-glib (>= 0.11.0) you can use
the macro tp_str_empty() :-)

Yep, I saw the change, I'll update it using tp_str_empty in another path.

There are lots of pending branches around which need to be merged, after it I'll start a cycle of general clean up of such things, before we'll declare the stable API.
Comment 3 Simon McVittie 2010-04-05 09:17:51 UTC
Ship it


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.