aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2014-11-09 00:55:57 +0100
committerAleksander Morgado <aleksander@aleksander.es>2014-11-09 17:58:13 +0100
commitdd5b4a9420c9f32faf6a6615e904178310156258 (patch)
tree6ee7069c48dcd10b592e533ba89dc699c58116c9
parentf89a9e13f2f813bc816eb230486e0043b20ada9e (diff)
downloadexternal_libqmi-dd5b4a9420c9f32faf6a6615e904178310156258.zip
external_libqmi-dd5b4a9420c9f32faf6a6615e904178310156258.tar.gz
external_libqmi-dd5b4a9420c9f32faf6a6615e904178310156258.tar.bz2
libqmi,message: avoid printing error in stderr
-rw-r--r--src/libqmi-glib/qmi-message.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libqmi-glib/qmi-message.c b/src/libqmi-glib/qmi-message.c
index 2c0905e..b38e7ce 100644
--- a/src/libqmi-glib/qmi-message.c
+++ b/src/libqmi-glib/qmi-message.c
@@ -800,12 +800,8 @@ qmi_message_new_from_raw (GByteArray *raw,
/* We need to have read the length reported by the QMUX header (plus the
* initial 1-byte marker) */
message_len = GUINT16_FROM_LE (((struct full_message *)raw->data)->qmux.length);
- if (raw->len < (message_len + 1)) {
- g_printerr ("\ngot '%u' bytes, need '%u' bytes\n",
- (guint)raw->len,
- (guint)(message_len + 1));
+ if (raw->len < (message_len + 1))
return NULL;
- }
/* Ok, so we should have all the data available already */
self = g_byte_array_sized_new (message_len + 1);