Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3367855pxk; Mon, 7 Sep 2020 10:50:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6QzX6As9JMK4jS4GAPD8ORi0Eay85Mvw5PAozX4FI5saDXHC8MRSFLfzotga7DgrQ9NU7 X-Received: by 2002:a17:906:b813:: with SMTP id dv19mr15350063ejb.70.1599501044534; Mon, 07 Sep 2020 10:50:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599501044; cv=none; d=google.com; s=arc-20160816; b=YS96LhMqSSkUoVEnYgD9zm2/j48AjBlaUb4OwCX11GUAcKekAfRTgclhzlXqBF6ouA 9xqw9XErCI2UrMJAEao8s6edFyhFrR6r5xOsam4Xq+edgKPGkliX4vZipwM6XobIIMl0 Nx2yhRcQi1r/OYK1bH0iarE3ypa3P+pTKUuNDQUtSWzKHw7FpUoyQFhGCYWYXQKqgHqT wJhK8AC9iB8x2FvuwsvPPseKBuU8wAnsKVBswgg08X5DIJu90PzvcgaduBuFbGh6TNpE ISTZlketDXP6E48VpyCb+QlCVB/jzFYFnvgrv5RSFsJ0vEHJGYYrGgr9pGHhUea9Vh9s jYyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:mime-version :user-agent:message-id:in-reply-to:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=2f3Zlbb9MfhG3U2/hoCNyDLjCAD54iZz9Q/qF4M3Xus=; b=Q2yFQfiX4UplfZlNi6u8dx5/y83ojAFjUEO9HeltuPuPE39bpzFO+QN25T5/Pf6gXg V+MV4wTdtUhOQBNF8+xDiC+SlJkc+eUHvJqMpt116TqndACu+fLPiLNUdb8TGzHSRaxs W5ZXWuF7XMyucR3bpRoH3xAKYGk0VC2f/5Loh03KgtkYtctmFI4FW/JyJFfi1dssYH1E vCwbNyoYMuAHpCKhfzXRWNoGR5QwYH/1IPK7y8OfCbllNAU/583uS9opd8+0Z5UqRNUI vCCU8e7Lr6kAg6CKF8ZhZNpTLs+9Q5+kxgnGMrnGhsjP7Pb1IypU4Yyt2HqNxut1XDLa 28Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=YZbOtOvA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d3si10315181edv.196.2020.09.07.10.50.21; Mon, 07 Sep 2020 10:50:44 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=YZbOtOvA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731267AbgIGRr3 (ORCPT + 99 others); Mon, 7 Sep 2020 13:47:29 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:56358 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729354AbgIGRrN (ORCPT ); Mon, 7 Sep 2020 13:47:13 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200907174711euoutp0152f3784ebeaa24512507411d323f7232~ykYgyymTX0317703177euoutp01E; Mon, 7 Sep 2020 17:47:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200907174711euoutp0152f3784ebeaa24512507411d323f7232~ykYgyymTX0317703177euoutp01E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1599500831; bh=2f3Zlbb9MfhG3U2/hoCNyDLjCAD54iZz9Q/qF4M3Xus=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YZbOtOvAL1C8e8VMwvoFqv3ZPMAyEyAzYfKw//6sEB5r2fC4Etmsc5FCfe73QfN/M UqNJlErmQWNgfpyhjEYB4cVWnmfqyqAR1rm9fwa2lAgjrsT+si0Oeo67SFIvbtPRpY 9+CESvRobfjRQ/XJWD4ubRodtRE6DQtwlQzPAeOg= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200907174710eucas1p1f644e6cc129e68610510e4cf2cd0fecd~ykYf7JaP-1825918259eucas1p1Q; Mon, 7 Sep 2020 17:47:10 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id BF.5D.05997.E12765F5; Mon, 7 Sep 2020 18:47:10 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200907174710eucas1p1b06f854222c255719a63c72b043ecda2~ykYfaKHxg0045100451eucas1p1u; Mon, 7 Sep 2020 17:47:10 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200907174710eusmtrp2df84bfd6bc6cb18b9d95329bfb255928~ykYfZdNEG2165721657eusmtrp2T; Mon, 7 Sep 2020 17:47:10 +0000 (GMT) X-AuditID: cbfec7f4-677ff7000000176d-12-5f56721e4ded Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 34.54.06017.E12765F5; Mon, 7 Sep 2020 18:47:10 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200907174710eusmtip2e0d48ef0a4bfc9c6fa84403036f23177~ykYfN4YTR0136101361eusmtip2J; Mon, 7 Sep 2020 17:47:10 +0000 (GMT) From: Lukasz Stelmach To: Geert Uytterhoeven Cc: Andrew Lunn , "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 Subject: Re: [PATCH 1/3] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver Date: Mon, 07 Sep 2020 19:47:09 +0200 In-Reply-To: (Geert Uytterhoeven's message of "Wed, 26 Aug 2020 09:13:14 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Brightmail-Tracker: H4sIAAAAAAAAA02Se0hTYRjG+3bO2Y7L2XFmvSyRWkY3dFmZx250Aw+ZIAUWQq1VBzW3KZt2 8R+ttFIqwwxzTqemXSzNpiy1ZrZMMS8zZmFRdNEyL2WkRYZd3D6D/vt97/c8z8vz8dGE9Dsl o2O1ibxOq1LLhWLS0jze6e+ri1QuaxhWsPZXNoK9fekWxRrtaSRrauqk2A8vrAI2q3eIYO32 KhHbZTlHsebeZxTrqDcK2Uv2BgFru2hFbEXTKxHbXDSLTbc2iTbM4BzPnhBczfXnAs5cniHk bA9PI666NIWrqx0VcOdqyhE3avaNoKPEaw/w6thDvE6xfq84pu5HB0poZI5ktDeTqShHkonc aGBWgqElQ5SJxLSUuYYgvzQT4cMYgtzjDymnSsqMIih6KshEtMuRd3M61lxF0JSeQ+JDP4Ih U4fIKRIyAVBRscuJMxl/MI4LnDEEY6DA/n2nk72YHXD5aTvhZJJZADbHG9deNyYXgTXd6jJI mGA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IClxJYX99kh 4oISJ2c+YQGxmQWyJb6ufs48gVFgFpLULCSpWUDrmAU0Jdbv0ocIa0ssW/iaGcK2lVi37j3L AkbWVYwiqaXFuem5xUZ6xYm5xaV56XrJ+bmbGIHxu+3Yzy07GLveBR9iFOBgVOLh/eAVFi/E mlhWXJl7iFEFaMyjDasvMEqx5OXnpSqJ8DqdPR0nxJuSWFmVWpQfX1Sak1p8iNEU6NGJzFKi yfnAlJNXEm9oamhuYWlobmxubGahJM7bIXAwRkggPbEkNTs1tSC1CKaPiYNTqoFRYaFa3PT8 vysWVTTofou/tqac40neoai85fK+jaq1nxmUnBi2fl7p+YarxnHbCW0V684v/3xXrbglxxrb cqdbffc90R/pG2tU/5qf+80meIXvCs+5dJEjjTtf2zxne1FVZ7a6mSksXe69K8uFnHVJWfZ7 vy19+Ts19FjpMu0F+5Zy61TmbjypxFKckWioxVxUnAgA33f64AEDAAA= X-CMS-MailID: 20200907174710eucas1p1b06f854222c255719a63c72b043ecda2 X-Msg-Generator: CA X-RootMTR: 20200907174710eucas1p1b06f854222c255719a63c72b043ecda2 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200907174710eucas1p1b06f854222c255719a63c72b043ecda2 References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable It was <2020-08-26 =C5=9Bro 09:13>, when Geert Uytterhoeven wrote: > On Tue, Aug 25, 2020 at 8:02 PM Andrew Lunn wrote: >> On Tue, Aug 25, 2020 at 07:03:09PM +0200, =C5=81ukasz 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 =3D 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(). It is good to know. Actually I think printe_hex_dump(KERN_INFO) is here more appropriate. With *_debug() functions and dynamic debug enabled users need to flip two switches to see messages. I think that if msglvl (pktdata in this case) is not turned on by default and users need to use ethtool to switch it, they shouldn't be required to fiddle with dynamic debug too. =2D-=20 =C5=81ukasz Stelmach Samsung R&D Institute Poland Samsung Electronics --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEXpuyqjq9kGEVr9UQsK4enJilgBAFAl9Wch0ACgkQsK4enJil gBABSQgAny+wC1IDEaru39HexqqTPsadTBNssgte1kbooXvX8pDpAttJeryYX5WK sUjSHqF290dL3qTu5MLYP4+GCWN0eCykHH33bYhkImSEmeLmiGI1psJotcdLR4Wl 1eLZBCbhjSHoBMbRJlXAp9zJi+t2/4USxrA6Tu+acHt8moa9UoVVgO4KZ/2EbWwQ V7/HVZnaa1IQ31FtbunDdHGqvbTlRNccMt5F20ksgM0zTOfDLdYQRo85blfFlO3R nCDXalGUg8qs7fasThmnXpg9jDEwDF4KvmKm9Q2nBifE2s5DdY5mC0XF7/m3Hmv+ FcvX47xKzrk7nH7EmcncoybkHU827g== =wlMo -----END PGP SIGNATURE----- --=-=-=--