X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=output%2Foutput_binary.c;h=e5c1e4adb27ff537ffdeaa6c1206421466a6d443;hb=e10d6e32e4d8766e12b752da6d1806944b0ee85e;hp=f542958554c50aa7bdaaf7fe5b26153c95d2f93e;hpb=cdb3573ceba61b02b80f7fc979d166db5b6ff3bc;p=libsigrok.git diff --git a/output/output_binary.c b/output/output_binary.c index f5429585..e5c1e4ad 100644 --- a/output/output_binary.c +++ b/output/output_binary.c @@ -22,6 +22,7 @@ #include #include #include +#include #include "config.h" static int data(struct sr_output *o, const char *data_in, uint64_t length_in, @@ -33,22 +34,22 @@ static int data(struct sr_output *o, const char *data_in, uint64_t length_in, o = o; if (!data_in) { - g_warning("binary output: %s: data_in was NULL", __func__); + sr_warn("binary output: %s: data_in was NULL", __func__); return SR_ERR; } if (!length_out) { - g_warning("binary output: %s: length_out was NULL", __func__); + sr_warn("binary output: %s: length_out was NULL", __func__); return SR_ERR; } if (length_in == 0) { - g_warning("binary output: %s: length_in was 0", __func__); + sr_warn("binary output: %s: length_in was 0", __func__); return SR_ERR; } if (!(outbuf = calloc(1, length_in))) { - g_warning("binary output: %s: outbuf calloc failed", __func__); + sr_warn("binary output: %s: outbuf calloc failed", __func__); return SR_ERR_MALLOC; }