Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/screen.c @ 1686:393c05fba337
Use G_GNUC_PRINTF to check scr_LogPrint arguments
And some minor fixes, revealed by that.
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Sun, 31 Jan 2010 16:08:50 +0200 |
parents | 9a0ed33fb91b |
children | b2e0083891cc |
comparison
equal
deleted
inserted
replaced
1685:1342df44c814 | 1686:393c05fba337 |
---|---|
2754 isspe = buddy_gettype(BUDDATA(current_buddy)) & ROSTER_TYPE_SPECIAL; | 2754 isspe = buddy_gettype(BUDDATA(current_buddy)) & ROSTER_TYPE_SPECIAL; |
2755 win_entry = scr_SearchWindow(CURRENT_JID, isspe); | 2755 win_entry = scr_SearchWindow(CURRENT_JID, isspe); |
2756 if (!win_entry) return; | 2756 if (!win_entry) return; |
2757 | 2757 |
2758 if (pc < 0 || pc > 100) { | 2758 if (pc < 0 || pc > 100) { |
2759 scr_LogPrint(LPRINT_NORMAL, "Bad % value"); | 2759 scr_LogPrint(LPRINT_NORMAL, "Bad %% value"); |
2760 return; | 2760 return; |
2761 } | 2761 } |
2762 | 2762 |
2763 search_res = hbuf_jump_percent(win_entry->bd->hbuf, pc); | 2763 search_res = hbuf_jump_percent(win_entry->bd->hbuf, pc); |
2764 | 2764 |
2827 GList *head; | 2827 GList *head; |
2828 winbuf *win_entry = value; | 2828 winbuf *win_entry = value; |
2829 | 2829 |
2830 head = g_list_first(win_entry->bd->hbuf); | 2830 head = g_list_first(win_entry->bd->hbuf); |
2831 | 2831 |
2832 scr_LogPrint(LPRINT_NORMAL, " %s (%u/%u)", key, | 2832 scr_LogPrint(LPRINT_NORMAL, " %s (%u/%u)", (const char *) key, |
2833 g_list_length(head), hbuf_get_blocks_number(head)); | 2833 g_list_length(head), hbuf_get_blocks_number(head)); |
2834 } | 2834 } |
2835 | 2835 |
2836 void scr_BufferList(void) | 2836 void scr_BufferList(void) |
2837 { | 2837 { |