From patchwork Sat Jun 25 08:49:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriel Viso Carrera X-Patchwork-Id: 585077 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8148BC43334 for ; Sat, 25 Jun 2022 09:05:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232375AbiFYJFD (ORCPT ); Sat, 25 Jun 2022 05:05:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231934AbiFYJFC (ORCPT ); Sat, 25 Jun 2022 05:05:02 -0400 Received: from sender4-op-o11.zoho.com (sender4-op-o11.zoho.com [136.143.188.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D951933E06 for ; Sat, 25 Jun 2022 02:05:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656146995; cv=none; d=zohomail.com; s=zohoarc; b=eQ8vlQ/mEa0BTElFAADKoVMx03yLeGW9BpCjUAPi5WA/5sTo10Eh3ch2cp/Fh1nj8LRYwAItf/BUK6f2c9WUiwKpIpKN3jgSWzG5QPQY32/NoyZLZmZP+VQ4+id0UIyayLzKbbyDgB6yzcS92DvcaTZBYvpKQxB1ikQRJ1Tttdo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1656146995; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=73B7q5ose/xpDy9xdiy7dsAKG7gzYSYBRfHb0ImXIXY=; b=hWOIinsJoGtVAHhY6hFjC60zeMiQtgzoM1vrqxjOYoUFWVTDfSpd98X2EfthJhk1RQBtY0b374u61Rw4eUI8wq+zWcJfdQ58SkEdpBNeSAvzQV6HDj4+IPEVLOBoe4HQwjdys//XGmBrw23Sia9xGp43QkVKvHp7syYyC8+JUGQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=gvisoc.com; spf=pass smtp.mailfrom=gabriel@gvisoc.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1656146995; s=zoho; d=gvisoc.com; i=gabriel@gvisoc.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=73B7q5ose/xpDy9xdiy7dsAKG7gzYSYBRfHb0ImXIXY=; b=AGLir0qMfZ+8+9RBF74CrrNnsDKka432+iidZEZtUxp0FnmjE5gjOpAsqOLg/Qdv 7Ec8zqQzuidgW2c6D5ouxI3A8ubOnmB5b/60tRzPF52CVajdBaoSGc61vPAggQ1teox lwTH7KyqKtP7bKiC542a/b40mtH1Ghtrj81sYNLE= Received: from localhost (124-171-144-237.tpgi.com.au [124.171.144.237]) by mx.zohomail.com with SMTPS id 1656146993489390.95142231892817; Sat, 25 Jun 2022 01:49:53 -0700 (PDT) From: Gabriel Viso Carrera To: andreas.noever@gmail.com Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Gabriel Viso Carrera Subject: [PATCH 1/3] staging: Thunderbolt: ctl.c: Fixed 2 literal style coding issues Date: Sat, 25 Jun 2022 18:49:11 +1000 Message-Id: <20220625084913.603556-2-gabriel@gvisoc.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220625084913.603556-1-gabriel@gvisoc.com> References: <20220625084913.603556-1-gabriel@gvisoc.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org In lines 1028 and 1054, there were WARN calls with hardcoded literal function name. Replaced with the recommended %s and __func__. Signed-off-by: Gabriel Viso Carrera --- drivers/thunderbolt/ctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thunderbolt/ctl.c b/drivers/thunderbolt/ctl.c index e92c658dba1c..4b841fbb3628 100644 --- a/drivers/thunderbolt/ctl.c +++ b/drivers/thunderbolt/ctl.c @@ -1025,7 +1025,7 @@ int tb_cfg_read(struct tb_ctl *ctl, void *buffer, u64 route, u32 port, break; default: - WARN(1, "tb_cfg_read: %d\n", res.err); + WARN(1, "%s: %d\n", __func__, res.err); break; } return res.err; @@ -1051,7 +1051,7 @@ int tb_cfg_write(struct tb_ctl *ctl, const void *buffer, u64 route, u32 port, break; default: - WARN(1, "tb_cfg_write: %d\n", res.err); + WARN(1, "%s: %d\n", __func__, res.err); break; } return res.err;