Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp685610ybz; Fri, 1 May 2020 06:48:01 -0700 (PDT) X-Google-Smtp-Source: APiQypK21oKnKU8qwasqSDffeDFMw5Ex3Hr/zhKQvIufBL42tAe2s24WAyZtpi09R5Sj4PxWvdcq X-Received: by 2002:a05:6402:752:: with SMTP id p18mr3647332edy.261.1588340881029; Fri, 01 May 2020 06:48:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588340881; cv=none; d=google.com; s=arc-20160816; b=EGD2uF1KxWWXaOgvjjH0K7wjEbkpIGDXDBxbaTXrcH5+MhIgPNKscMfvt+W+FZ32jq X9Mh/8+G9sFdu5GjuX4+NDZN2LW3Fgskq7te+b5KzpZiP3Nfze3mvTHbTurQn+nqEmGX 57su6Xn0V2RJwW8Wg3v08I+DYL7XX0TUaP6Ikq1bSLM4GxY4tP9Ht3jLn9lXBTjKcGS8 Rqv8SO2APQnmGXGp63X/7UmouxonZbxY5lVuKuv8ZC6rlbZIR5FHEv4rkl3yiUZLKsI4 0uwehVbZTq7NhVtrAlIqb4SbPsWguVRSeKot6j7IG1lA1dBrcA/PUEw2JmTonKEYnekj +MVA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=HfgY/DHsULUZEl+7rWuesO+JiGINR2RoKVUEnFZIbxY=; b=SWesjRV8IAZfU5pXHDE6m1E7AyU2qQzR1CVUVG9nUHtwhCIh3oWe3o7N1sF+Ba5mwF RQEpOqyLKJZ4wAuLj8io/u3fHQ/AktxaanbNkmdbUJitPFT4eDj7PN38TOkxyDhtOWaR NvcvHaA3WfEidalJxhYfGzhaSymHDq/S0K4aha54yxBWYLpow7RgD+i251poFRRAUiWT geCOUdUwvLDBNkcVx0W8pPmqRBIG/AvSpc62yVxhj/y9NbzzHmk0XiA7quDTMHaVFq/7 YjaxgvcjR561OmZ3UkdSIlzr4CQMG23DTczv3GOu3tk8Qi6Msw1XeeNaq8NU7IT1yuD6 3YZg== 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 f3si1746579edy.68.2020.05.01.06.47.38; Fri, 01 May 2020 06:48:01 -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 S1731308AbgEANqQ (ORCPT + 99 others); Fri, 1 May 2020 09:46:16 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:41127 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731801AbgEANo5 (ORCPT ); Fri, 1 May 2020 09:44:57 -0400 Received: by mail-lj1-f196.google.com with SMTP id j3so2625727ljg.8; Fri, 01 May 2020 06:44:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HfgY/DHsULUZEl+7rWuesO+JiGINR2RoKVUEnFZIbxY=; b=pxXj1FjY94uKiY9NjZ20d37GK+1O1u7oXO9tUyCiEc0ovwW2BufjqFedJyGDc0Ilik H7IOODCIGaTPLp2BBkTp80LTjeaCasB377ri6AIYpbUO50nR4GcRHGoGwlUPDPwUjl3y krcxBl0CXex5g1po9+OSMxCTRd9JkH6v0BjYgoigBJDTmBNLykM3pwmCyrjP9ur1D4CF viuOc3AVKU9OHTmVj+RZBiqPSG3fHiEoN3zqOKnAXcoqE8ZOTPtlWPSyPfj2EoCbL/Rs ONL0sWoUiJ68coTmv4LK7EDIHfILo114XLGOtpj7e+y5snA3QOU5+qQ5oca1VmAOY7eU AdDw== X-Gm-Message-State: AGi0PuZcqvRHFNkoUrzYa9Oefr4qpGWV71qxcGO225lRHBeoqHZrOB4U MVaPTjKBOtXSCp0qW2096+Jou24KDoY= X-Received: by 2002:a2e:a417:: with SMTP id p23mr2628367ljn.19.1588340695103; Fri, 01 May 2020 06:44:55 -0700 (PDT) Received: from localhost.localdomain ([213.87.150.177]) by smtp.googlemail.com with ESMTPSA id b2sm2269194lfi.14.2020.05.01.06.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 May 2020 06:44:54 -0700 (PDT) From: Denis Efremov To: linux-block@vger.kernel.org Cc: Denis Efremov , Willy Tarreau , Christoph Hellwig , Joe Perches , linux-kernel@vger.kernel.org Subject: [PATCH v3 1/4] floppy: use print_hex_dump() in setup_DMA() Date: Fri, 1 May 2020 16:44:13 +0300 Message-Id: <20200501134416.72248-2-efremov@linux.com> X-Mailer: git-send-email 2.25.3 In-Reply-To: <20200501134416.72248-1-efremov@linux.com> References: <20200501134416.72248-1-efremov@linux.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove pr_cont() and use print_hex_dump() in setup_DMA() to print the contents of the cmd buffer. Suggested-by: Joe Perches Signed-off-by: Denis Efremov --- drivers/block/floppy.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 2817170dd403..3ab6e804b5ec 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c @@ -1069,12 +1069,9 @@ static void setup_DMA(void) unsigned long f; if (raw_cmd->length == 0) { - int i; - - pr_info("zero dma transfer size:"); - for (i = 0; i < raw_cmd->cmd_count; i++) - pr_cont("%x,", raw_cmd->cmd[i]); - pr_cont("\n"); + print_hex_dump(KERN_INFO, "zero dma transfer size: ", + DUMP_PREFIX_NONE, 16, 1, + raw_cmd->cmd, raw_cmd->cmd_count, false); cont->done(0); fdc_state[current_fdc].reset = 1; return; -- 2.25.3