Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp303858pxb; Thu, 26 Aug 2021 03:39:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+9VvQ1Ta3GcPr2yCp5YutmHADqyG1HzOBEJu7c/oE12Y7a8aEUCFfTONhy+2OM7em9hfL X-Received: by 2002:a6b:ed12:: with SMTP id n18mr2468313iog.206.1629974373064; Thu, 26 Aug 2021 03:39:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629974373; cv=none; d=google.com; s=arc-20160816; b=WGwl9ly0BkHRHnTfe43RqtEX2GNwdgQ7h643L2s/qCg9zPy4ltQ0P0AtDb5DILCwuf DbZ0eqlaWgeJk21duDUb4iAD0HBWSaExOuJ3Q5PCxiOMH1GOZbyy339VwxpbhmbZZSTk ycb/uId04LazWD0xJ+3Pim/h/YTkLhxS0Wtavh8Gqh9Y52GUMRVY3++UKrRY+Fs09KPy /VsuWFkZXUbS0SB8k2pd0ive9woJMAGX0NEKAcQjbuUiMuVVnuuipHhW/zkZPRqQ8AMY GL02Cqt/Iy1BfesWk7SZPGJ5ExA9XMhgk6vKsgcwVk25IalI9L9aXalb4fF6WdZwRVu/ LqGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fkigZPKg09AWcvQkbHlT33ppeVfQGrteaTpAE9YbOLw=; b=SSkXfGnppXLg5bCQ1o99bxDVAQaPQBeeOXJF5F0FoBA8WZxQ0fEwsIH5313IvR32Sf iakxguoH05wvfx/XOsIkk25vRhtGr6OvzMhwRyYJx6wXyNrB+U223kqP5ka0cwFZovqm s4GZE0rPSB1jtmbQdJsOr1V3TLcL7XabefCWXaSpDtaH1Zbb9yuN8LDgcfxjI+UshgXi KqyV8HVoeDWR04KVtEL+tO6rGZKSEY1K/a1LxtKEMv06GOFsy4VZkG4pheI42A0KLCg5 YVj9HJCGNpSLoJL25LbJ19R0wMtAcHjpKRyfnes7uQWacUJmzOv8OK5ltXGwBnDI9l9T w61Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="pwOz/Tev"; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x10si2597238ilg.50.2021.08.26.03.39.19; Thu, 26 Aug 2021 03:39:33 -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=@linuxfoundation.org header.s=korg header.b="pwOz/Tev"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241503AbhHZKit (ORCPT + 99 others); Thu, 26 Aug 2021 06:38:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:49126 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233929AbhHZKit (ORCPT ); Thu, 26 Aug 2021 06:38:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 40EDE6108E; Thu, 26 Aug 2021 10:38:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1629974282; bh=VnfV2BVfaslmfYlEK9+6jV7Vwu0OBzuNc8ALqlT2AFE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pwOz/TevojjD8DdKYxYawLvUrvisCvSXi04MS1ScZJ5Rv12spUOBsDasy94UmBdNp boT9NA9h8zelDFzIcLjX3OUipPoPj0WJ1y0sGQCdgVmTTMYLiWpu9mLesJ1Qli4Bhv qYO9WaBVpkGHUuRbICn5IyFF0eL0EYZpZY4UV/tw= Date: Thu, 26 Aug 2021 12:37:58 +0200 From: Greg KH To: Pavel Skripkin Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, straube.linux@gmail.com, fmdefrancesco@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/6] staging: r8188eu: add helper macro for printing registers Message-ID: References: <84e388b0eaaf3c56f575216b0571318ed799a4d2.1629789580.git.paskripkin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <84e388b0eaaf3c56f575216b0571318ed799a4d2.1629789580.git.paskripkin@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 24, 2021 at 10:27:20AM +0300, Pavel Skripkin wrote: > There are a lof of places, where DBG_88E() is used to print register > value. Since following patches change _rtw_read*() family > prototypes, we can wrap printing registers into useful macro to avoid > open-coding error checking like this: > > u32 tmp; > if (!rtw_read(&tmp)) > DBG("reg = %d\n", tmp); > > So, added DBG_88E_REG{8,16,32} macros for printing register values. No, please work to remove these messy things, do not add new ones. Why is this ever needed? And if it is, use the correct in-kernel debug functions please. thanks, greg k-h