Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp499432imm; Wed, 29 Aug 2018 05:25:39 -0700 (PDT) X-Google-Smtp-Source: ANB0VdauToXe76Ma+fPsiMBVTtnKxGMcGDx9gxJnz6jZtnLcmNVmUq8dL8DX1OtKY18/BtUw9JOm X-Received: by 2002:a17:902:8643:: with SMTP id y3-v6mr3979183plt.225.1535545539138; Wed, 29 Aug 2018 05:25:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535545539; cv=none; d=google.com; s=arc-20160816; b=Z5RytPsjHrWnKUW5aFzP0GlTf3pqdgEFz2guPGIn0knn+gprQ/WUgclyF+qN0DCz2s 7DaSYEi9j6ogYp5zNUnIb11Am7Ld9mM0sTw8Y2T0KcE3HiB5x0jLZhMv15jE5L+xMx0E /r19GmCnej2NtVspilwLqzmz97wyjc0PaLguRXcajr2myPhXGe0l2Vg7DZP9LzJ0haj3 5kAG05U+PoEhH6PGUmtj953KP6G3hBGqgQMAQLhoDqRRjhatcubF/ynlLX8r4y9TrtZO 6M3re9CLGKs12VgdCDeaqm66kwnVkQip2IbkldjLsU54kc15cY3hchiE2BB8FIO1I3kq 1zUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=iBg1uCqOePo2LDQD2c20wRoYMAK/OSTDbgOTeB8gv9s=; b=YLJijgw0cxQjVNWSpS+GSZVaG7Zw8Ze2g9o/IMtD5CPc9lSnumhHut59ERI2+2L/5o OLy6qcdDnDa3mmghulxnGLRbAQX4H8SFQE/Rljs4Gv/PRMfE7ZAhMcFo04spPbYDX6+u P+lRlJ9D8j2glPsel4tH/gOLtm4mT6qFbz5FKnI/MYymx58IooWYcO4jkmuNYpDudj+i ShlYAJCJYDZLjEiPX8OC9ptRtvbYi5SS7qHiSuqu+B+axK2KlQHjk+oeCLRvb6qBNZif MVt0b+uGsXflGdfODLMgzB4jAfmyftCOqwiiDm0nLEPl9sz5trye+skFoZsY13BBobTP 3Dgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@owltronix-com.20150623.gappssmtp.com header.s=20150623 header.b="VTH3oS/e"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l63-v6si3334254pgd.598.2018.08.29.05.25.23; Wed, 29 Aug 2018 05:25:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@owltronix-com.20150623.gappssmtp.com header.s=20150623 header.b="VTH3oS/e"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728425AbeH2QUw (ORCPT + 99 others); Wed, 29 Aug 2018 12:20:52 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:41301 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728169AbeH2QUj (ORCPT ); Wed, 29 Aug 2018 12:20:39 -0400 Received: by mail-ed1-f66.google.com with SMTP id f38-v6so3771539edd.8 for ; Wed, 29 Aug 2018 05:23:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owltronix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iBg1uCqOePo2LDQD2c20wRoYMAK/OSTDbgOTeB8gv9s=; b=VTH3oS/evm991XifbHxtoLWtJba9u+i+SMVE79aiZQYpTlVXJpLT07prOzvdrhecvG Fqg1V1tY69ZHsQwYYr3KygrZ2LAWrLCC7g6HJLm/5ZtGeTALAa663TethDCgCxGpELyh LqQxov5J3ozG5UXK+pQljH+/WP3j+fSU8vzn5d2Vmtp9nJLF+2uNxOL2ASts6na1DzUR fJ/OLIs1Ttwqo/SuQy+It/jUA8Ksl6+Bp3nNL+BtNYd47m3KFfyt7E4Fd48fFtmSFwD/ Om07UwJGkvLllnwjQOMZ4BmoXx4KGyvcDFVVrMhAoK939DBFn66DVGB2rR3CoiK4rwVS UfGw== 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; bh=iBg1uCqOePo2LDQD2c20wRoYMAK/OSTDbgOTeB8gv9s=; b=hSL/cKcMT4vcX8FyZda3VKGy1YZKm4Z0eu3PkKLamqhj20/uXGaYubpKD76QNTAf/b KiZVzPDyTzGibKC2GgT6OR8aPR9t3itLBRHRAMz2Pw0KKmTATohTdIkjvsCe7pWzXEyJ H3jQ6JcoDexfATcv0EXSmT7Edmozyq1o2rvfgOUQQZ1cAPFlgy1WZtMtc1EIQUWh/ECA cr1YNVWPBMZmZUoYgp5wAdFaEyX+Yd87xTIpa7vKUO705P5n/ckJOKkyGpjkipGvZI4u ORMVgEdNqFQkoIsFeYbUCbY50I5lth0loZg+g4an4IvWgmutKBJgl/aFvYK3169qgtxZ FVOw== X-Gm-Message-State: APzg51DpBWhPuCoJvcMIunRo7qoUJBVpGW64MCfy+03QzxO+hZapU6FJ h1gcrKrehXXPM1vAfCt3LVShsQ== X-Received: by 2002:a50:94b3:: with SMTP id s48-v6mr7142068eda.125.1535545438286; Wed, 29 Aug 2018 05:23:58 -0700 (PDT) Received: from titan.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id f26-v6sm1752068edb.28.2018.08.29.05.23.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Aug 2018 05:23:57 -0700 (PDT) From: Hans Holmberg To: Matias Bjorling Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Javier Gonzales , Hans Holmberg Subject: [PATCH 6/7] lightnvm: pblk: fix up prints in pblk_read_check_rand Date: Wed, 29 Aug 2018 14:23:33 +0200 Message-Id: <1535545414-550-7-git-send-email-hans.ml.holmberg@owltronix.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535545414-550-1-git-send-email-hans.ml.holmberg@owltronix.com> References: <1535545414-550-1-git-send-email-hans.ml.holmberg@owltronix.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans Holmberg The prefix when printing ppas in pblk_read_check_rand should be "rnd" not "seq", so fix this so we can differentiate between lba missmatches in random and sequential reads. Also change the print order so we align with pblk_read_check_seq, printing read lba first. Signed-off-by: Hans Holmberg --- drivers/lightnvm/pblk-read.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/lightnvm/pblk-read.c b/drivers/lightnvm/pblk-read.c index df3c4eb13be9..6d13763f2f6a 100644 --- a/drivers/lightnvm/pblk-read.c +++ b/drivers/lightnvm/pblk-read.c @@ -149,10 +149,10 @@ static void pblk_read_check_rand(struct pblk *pblk, struct nvm_rq *rqd, #ifdef CONFIG_NVM_PBLK_DEBUG struct ppa_addr *ppa_list = nvm_rq_to_ppa_list(rqd); - print_ppa(pblk, &ppa_list[j], "seq", j); + print_ppa(pblk, &ppa_list[j], "rnd", j); #endif pblk_err(pblk, "corrupted read LBA (%llu/%llu)\n", - lba, meta_lba); + meta_lba, lba); WARN_ON(1); } -- 2.7.4