forked from osmocom/wireshark
Cleanup some checkAPI warnings that were missed in previous patches.
Some search/replace of printf, g_warning and GTK APIs were changed to use a ws_ prefix Change-Id: I9beb763a975530a4006d1afbcad079a7d8d4ebf9 Reviewed-on: https://code.wireshark.org/review/16704 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
9bfbffa1c8
commit
916b26ecfe
|
@ -463,7 +463,7 @@ eras_dec_rs(dtype data[NN], int eras_pos[NN-KK], int no_eras)
|
|||
syn_error = 0;
|
||||
for(i=1;i<=NN-KK;i++){
|
||||
syn_error |= s[i];
|
||||
/*printf("syndrome %d = %x\n",i,s[i]);*/
|
||||
/*ws_debug_printf("syndrome %d = %x\n",i,s[i]);*/
|
||||
s[i] = Index_of[s[i]];
|
||||
}
|
||||
|
||||
|
@ -649,7 +649,7 @@ eras_dec_rs(dtype data[NN], int eras_pos[NN-KK], int no_eras)
|
|||
}
|
||||
if (den == 0) {
|
||||
#if DEBUG >= 1
|
||||
printf("\n ERROR: denominator = 0\n");
|
||||
ws_debug_printf("\n ERROR: denominator = 0\n");
|
||||
#endif
|
||||
/* Convert to dual- basis */
|
||||
count = -1;
|
||||
|
|
|
@ -609,7 +609,7 @@ static GtkWidget *extcap_create_gtk_fileselect(extcap_arg *argument,
|
|||
#if GTK_CHECK_VERSION(3, 0, 0)
|
||||
ret_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 3);
|
||||
#else
|
||||
ret_box = gtk_hbox_new(FALSE, 3);
|
||||
ret_box = ws_gtk_hbox_new(FALSE, 3);
|
||||
#endif
|
||||
|
||||
gtk_box_pack_start ( GTK_BOX(ret_box), entry, TRUE, TRUE, 5 );
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#else
|
||||
#include <windows.h>
|
||||
#endif
|
||||
#include "ws_printf.h" /* ws_g_warning */
|
||||
|
||||
/* converts a broken down date representation, relative to UTC,
|
||||
* to a timestamp; it uses timegm() if it's available.
|
||||
|
@ -114,7 +115,7 @@ void log_resource_usage(gboolean reset_delta, const char *format, ...) {
|
|||
g_string_append_vprintf(log_str, format, ap);
|
||||
va_end(ap);
|
||||
|
||||
g_warning("%s", log_str->str);
|
||||
ws_g_warning("%s", log_str->str);
|
||||
g_string_free(log_str, TRUE);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue