Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3454050pxa; Wed, 26 Aug 2020 00:14:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJz54jGcmJSnJwEGvOt7inVPKTeBEtTOMfNgiMdSRtFQOy3UqGre3joRcq1RG7AXNsrsqc X-Received: by 2002:a50:cd15:: with SMTP id z21mr14161564edi.362.1598426065851; Wed, 26 Aug 2020 00:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598426065; cv=none; d=google.com; s=arc-20160816; b=Raa9WDSQ8qRFs3oVzzmP4emLrL7Ptk61n1CB8RPXfMmzLqea3omAtam5ZT3pzlPBAj FnvksDJHCS8B3vmHAOInXbYOaXRhHlzqJqCwNqaHlSkB/v46ZPhzvlNWNeZKHm8WFvxX B/XbZz/0IblU9lRHJpgL6UmI8oANjlyOy+WOhdM9gtlpCDjGYe/iRbPFtiEbf+d2vbo3 axw31ye7GQIuEu8q9gzKHQp0Qe8ZX7i6sbo2yff9gIbfMPy2fw3XYHOQaIcI++dm693J qVPdH4bnLkLGV2bULGoRxasFbA/hWFWiEWD3tqaOB2LQ99E4EK+oqqc2deSrEo7BRlpF 6i1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=jAQ3WA5talsL/0FSdLMoDYszif9iPZk4Aaw8f+hCJf4=; b=zbRQyOy23MkTtDiM6zGmFusPysyDpXgVoA53ZHG0u/1gBF1kwmyDJhPV2kR5tD31Ar T+8VXyiIN6YOdBoRe6oiTCI+2MmVBX1tNLnVhqXw3RJtA4WwqJtCtHsBuVVdbhyPKfme dcbpTqZeklB2nw0MJtVS4UwDIwbIYBL0/5tsT8usaUlYqHQ+YosHC5Oj4/PR5F/ONCbv +qjlVPdm4RCtnljw5WzM+VPGDawqpXAV2/EsNxiehGAgLHNTuhLXV8S82An9wQZadJ0q 5DJX+HFFJN4sVwtPr2Owvfzq61/iidbwqOHAYhnczC46FPZ5jA3ZdIgLzLexg+3RZnQx eYWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si1027973ejb.659.2020.08.26.00.14.01; Wed, 26 Aug 2020 00:14:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726719AbgHZHN2 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 26 Aug 2020 03:13:28 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:36715 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726240AbgHZHN1 (ORCPT ); Wed, 26 Aug 2020 03:13:27 -0400 Received: by mail-oi1-f195.google.com with SMTP id b9so695859oiy.3; Wed, 26 Aug 2020 00:13:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=FGHPb84Jx11W3vIf+ODKn/oBh3C6uj3q4u2snyewUTw=; b=TPRbD82xxEC79PMccp+ZMzJ5MVIGmAwTuXCY1UUHzFpOD1E3s2Wch/5XWinv0bYWXF s8yCbd9DMBQW+xOr6/wXdUeDPttAPu8gSqKvXc78Oz6/8//8H1qazrRolufojI3siDPy 6n5NP+43t1fV20nj4OpaPbJkf8NX938MnMM925QrVXiVbGJnfIU80GpixayLF7x6uk/R mk9gGftC5RpehgtfUc5OaqmDEB2YGEr6vecq9qEyWnKj5CkQWETVnjO3fBLqOpqIoZPe rYFmUOKbUReXyM7O30WTfBJdkj5tGqYCqRkdEsDusL1xBpl3ViG9ZgYwrLppk4fi3A2m J7nA== X-Gm-Message-State: AOAM531/WUMwliqa8O3BASt/i04yccXlsgCfKQFhG7SpxuKaZ7fhd/sq AN4sXy0OBecMWlfTZN4hW7vLb09xl0qOdKdZfys88k8F89I= X-Received: by 2002:aca:3402:: with SMTP id b2mr648406oia.153.1598426006201; Wed, 26 Aug 2020 00:13:26 -0700 (PDT) MIME-Version: 1.0 References: <20200825170311.24886-1-l.stelmach@samsung.com> <20200825180134.GN2403519@lunn.ch> In-Reply-To: <20200825180134.GN2403519@lunn.ch> From: Geert Uytterhoeven Date: Wed, 26 Aug 2020 09:13:14 +0200 Message-ID: Subject: Re: [PATCH 1/3] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver To: Andrew Lunn Cc: =?UTF-8?Q?=C5=81ukasz_Stelmach?= , "David S. Miller" , Jakub Kicinski , Krzysztof Kozlowski , Kukjin Kim , Rob Herring , Russell King , Linux ARM , Linux Kernel Mailing List , linux-samsung-soc , netdev , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Bartlomiej Zolnierkiewicz , Marek Szyprowski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 25, 2020 at 8:02 PM Andrew Lunn wrote: > On Tue, Aug 25, 2020 at 07:03:09PM +0200, Ɓukasz Stelmach wrote: > > + if (netif_msg_pktdata(ax_local)) { > > + int loop; > > + netdev_info(ndev, "TX packet len %d, total len %d, seq %d\n", > > + pkt_len, tx_skb->len, seq_num); > > + > > + netdev_info(ndev, " Dump SPI Header:\n "); > > + for (loop = 0; loop < 4; loop++) > > + netdev_info(ndev, "%02x ", *(tx_skb->data + loop)); > > + > > + netdev_info(ndev, "\n"); > > This no longer works as far as i remember. Lines are terminate by > default even if they don't have a \n. > > Please you should not be using netdev_info(). netdev_dbg() please. We have a nice helper for this: print_hex_dump_debug(). Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds