<div dir="ltr">I rebased Prathmesh's patch.<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 19, 2014 at 2:08 AM, Aleksander Morgado <span dir="ltr"><<a href="mailto:aleksander@aleksander.es" target="_blank">aleksander@aleksander.es</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 18/06/14 17:03, <a href="mailto:pprabhu@chromium.org">pprabhu@chromium.org</a> wrote:<br>
> From: Prathmesh Prabhu <<a href="mailto:pprabhu@chromium.org">pprabhu@chromium.org</a>><br>
><br>
<br>
</div>Patch doesn't apply.. can you rebase it on top of git master?<br>
<div><div class="h5"><br>
<br>
> diff --git a/src/libmbim-glib/mbim-device.c b/src/libmbim-glib/mbim-device.c<br>
> index 6f965e9..9464042 100644<br>
> --- a/src/libmbim-glib/mbim-device.c<br>
> +++ b/src/libmbim-glib/mbim-device.c<br>
> @@ -417,12 +417,13 @@ static void<br>
>  process_message (MbimDevice  *self,<br>
>                   const MbimMessage *message)<br>
>  {<br>
> +    gboolean is_partial_fragment;<br>
> +<br>
> +    is_partial_fragment = (_mbim_message_is_fragment (message) &&<br>
> +                           _mbim_message_fragment_get_total (message) > 1);<br>
> +<br>
>      if (mbim_utils_get_traces_enabled ()) {<br>
>          gchar *printable;<br>
> -        gboolean is_partial_fragment;<br>
> -<br>
> -        is_partial_fragment = (_mbim_message_is_fragment (message) &&<br>
> -                               _mbim_message_fragment_get_total (message) > 1);<br>
><br>
>          printable = __mbim_utils_str_hex (((GByteArray *)message)->data,<br>
>                                            ((GByteArray *)message)->len,<br>
> @@ -468,8 +469,18 @@ process_message (MbimDevice  *self,<br>
>              /* Grab transaction */<br>
>              tr = device_match_transaction (self, TRANSACTION_TYPE_HOST, message);<br>
>              if (!tr) {<br>
> +                gchar *printable;<br>
> +<br>
>                  g_debug ("[%s] No transaction matched in received message",<br>
>                           self->priv->path_display);<br>
> +                /* Attempt to print a user friendly dump of the packet anyway */<br>
> +                printable = mbim_message_get_printable (message, ">>>>>> ", is_partial_fragment);<br>
> +                if (printable) {<br>
> +                    g_debug ("[%s] Received unexpected message (translated)...\n%s",<br>
> +                             self->priv->path_display,<br>
> +                             printable);<br>
> +                    g_free (printable);<br>
> +                }<br>
>                  return;<br>
>              }<br>
><br>
><br>
<br>
<br>
--<br>
</div></div>Aleksander<br>
<a href="https://aleksander.es" target="_blank">https://aleksander.es</a><br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
libmbim-devel mailing list<br>
<a href="mailto:libmbim-devel@lists.freedesktop.org">libmbim-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libmbim-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libmbim-devel</a><br>
</div></div></blockquote></div><br></div></div>