system automatically reboot due to MC7430
dailijin
dailijin126 at 126.com
Fri Sep 2 14:41:19 UTC 2016
Hi Andrew,
thanks your remind.
brace is missed when I copy code to here.the actual code is right when debug this issue
--
Best Regards,
Dai,Lijin
At 2016-09-02 19:01:09, "Andrew Bird" <ajb at spheresystems.co.uk> wrote:
>On Fri, 2 Sep 2016 18:01:06 +0800 (CST)
>dailijin <dailijin126 at 126.com> wrote:
>
>> Hi all,
>>
>>
>> I add debug info in usbnet and qmi_wwan driver, detail as below.
>>
>>
>> usbnet.c:
>> static inline void rx_process (struct usbnet *dev, struct sk_buff *skb)
>> {
>> ...
>> if (skb->len) {
>> /* all data was already cloned from skb inside the driver */
>> if (dev->driver_info->flags & FLAG_MULTI_PACKET)
>> dev_kfree_skb_any(skb);
>> else
>> printk (KERN_INFO "danner debug =>rx_process, skb len:%zu, dev:%s\n", skb->len, skb->dev ? skb->dev->name : "<NULL>");
>> usbnet_skb_return(dev, skb);
>> return;
>> }
>>
>
>Not sure if that was your intention, but braces are missing around the 'else' if the indentation is correct.
>_______________________________________________
>libqmi-devel mailing list
>libqmi-devel at lists.freedesktop.org
>https://lists.freedesktop.org/mailman/listinfo/libqmi-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20160902/874131ef/attachment.html>
More information about the libqmi-devel
mailing list