From patchwork Thu Jun 7 09:10:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 137859 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1842036lji; Thu, 7 Jun 2018 02:10:12 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLczWT82BIBKBfBscPQvzAOWyVe/DcJHqgKdaGtSh4vzu2J+Uvj3uKCNByUtJuj3o8xv8Gd X-Received: by 2002:a65:62cd:: with SMTP id m13-v6mr908515pgv.207.1528362612555; Thu, 07 Jun 2018 02:10:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528362612; cv=none; d=google.com; s=arc-20160816; b=aaTHTmbLmJW3wmmlQD6OBbriDb1MFv6fRJyxXw4NRcaU9Yx1rzDeJ85pHTl71ZClb4 3f7RbB1ji+RU7Cetvcw6cyV5IKi00opELzTCqIdaxOILkqRSpn+hjd1kbxlM71MHwgBa EeEzVqxNMlqc1KJP8Yj2N83Uybu66Z5l6ktFAQK/U1xIhxpO1CPtl6+5tcNEcPMNNJ4q Js1YEtMC+sDrXok1d2GQikNLimXA0K4rKJENHWP6HtZk1rppeVcBaW030bjjcF2Qb40B a2tvay0y4iI1uaWfIbQCMYYj0P+VzNYoPK+QSTVE/TB5aFATih7NMXMYTJxM83zhrPn5 JMvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=K7GEk1xE4JzeK/aFzorXPOQ+odZ64GJIm6eLBObb43w=; b=SD38dcoKvs7N5G2NBPtLRiGcD2W2W/1Q5QqNquvYtrtU3nGIra+OdmoSBq6iElbR98 dzPQohZAgcU2vtCd/ZOz2qDHcb06bxhV1nZdEKW7/+n7DOg3s8hpTA7CC9NKZX9l0O1i 1xaKSt2SnhXZ4afsIyQ9HSVBerdDRm7SD8UGsdfEeMb3xXv9XZxfBHr1KP5oXw6XnT/o sFzHJZQN94Blb3xW7y6mrIQOgcSlYbkMCUiHjKz7e+shZRMMkCc1/P7ldglZfkmFT9wt aciPk2V1RkSVJcFePYuTdLdPvWYlZVINrCBVHj2weZFJbggMPrKewHOsKSgiVTAj9Utw QQ6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=UyJN7489; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id s14-v6si16505786pgo.314.2018.06.07.02.10.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Jun 2018 02:10:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=UyJN7489; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id DA0BB21123861; Thu, 7 Jun 2018 02:10:11 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::231; helo=mail-wr0-x231.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x231.google.com (mail-wr0-x231.google.com [IPv6:2a00:1450:400c:c0c::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 3F2D7210F2024 for ; Thu, 7 Jun 2018 02:10:09 -0700 (PDT) Received: by mail-wr0-x231.google.com with SMTP id l41-v6so9222151wre.7 for ; Thu, 07 Jun 2018 02:10:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=6R5SjVtxVCNhRFpMVSQ+FRKczfx911bBv74qn+BLFv8=; b=UyJN7489i1xRjCsNRc0XQgR/25Y/pQs7br1pZyOkXb6LtfUvNyWEyLvFNk6lVmEYBa Qds1W33vpHGsDtFoG6v1C6+LQY8tYTGiUP4A7iOKf9Q488jJ6BXnFuWjVoFxXm5L8WkC E5+kggdSZFIEgJsSiQZKGHi3NKzkEt2OH3+V8= 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; bh=6R5SjVtxVCNhRFpMVSQ+FRKczfx911bBv74qn+BLFv8=; b=Ywr3pSrjcDbF/34cnuB46/kQ5SqydZ3+M7GcoIuuVMicwchBMYmB4T/dye3Tw4awzC rktIS2X3MzvmCPRXoDnnTz4Zyd4vIGFu2hyuceyfNPKaQh/ajjMeaUAAjRp8ffMpKf+T bWTnEe7Ab3DMW409a3FKwB/BgdKbZr+z9Tud6UZEkAV83dp9x/vObUf8br2UIUfrShun 55U0w30rS+WesqEEIdnWIGFt6Q32NGmf9Gi6QR2yAvz7VFxfG6G3JlKuYQZFJguiq7TS FdMssaefrHAklUIbsV9V4HVpaSLcXJIhlgcYgWFo80jPxjxk99ITbku71vnagvcbvNqB hZ+w== X-Gm-Message-State: APt69E09HsNl9tfF1pCR+T8DKlGG+8sc2uWNlYfvaYhQ+u/xmmzj9dSz OirBt1O0CQKu66cK9N+VBWDIO4nIkK8= X-Received: by 2002:adf:86ae:: with SMTP id 43-v6mr858148wrx.281.1528362607636; Thu, 07 Jun 2018 02:10:07 -0700 (PDT) Received: from dogfood.home ([2a01:cb1d:112:6f00:88ff:8f90:37f1:db91]) by smtp.gmail.com with ESMTPSA id z192-v6sm1001260wmc.10.2018.06.07.02.10.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Jun 2018 02:10:06 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Thu, 7 Jun 2018 11:10:03 +0200 Message-Id: <20180607091003.8687-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.0 Subject: [edk2] [PATCH] MdeModulePkg/EmmcDxe: demote DEBUG print to DEBUG_BLKIO X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: star.zeng@intel.com, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Lower the priority of the DEBUG print in EmmcReadWrite(), which is emitted for each read or write operation to the eMMC device, which clutters up the log output of builds created with DEBUG_INFO enabled. Suggested-by: Pipat Methavanitpong Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- MdeModulePkg/Bus/Sd/EmmcDxe/EmmcBlockIo.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 2.17.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Laszlo Ersek Reviewed-by: Laszlo Ersek diff --git a/MdeModulePkg/Bus/Sd/EmmcDxe/EmmcBlockIo.c b/MdeModulePkg/Bus/Sd/EmmcDxe/EmmcBlockIo.c index e1d0f394a954..f6b230514b71 100644 --- a/MdeModulePkg/Bus/Sd/EmmcDxe/EmmcBlockIo.c +++ b/MdeModulePkg/Bus/Sd/EmmcDxe/EmmcBlockIo.c @@ -901,7 +901,10 @@ EmmcReadWrite ( if (EFI_ERROR (Status)) { return Status; } - DEBUG ((EFI_D_INFO, "Emmc%a(): Part %d Lba 0x%x BlkNo 0x%x Event %p with %r\n", IsRead ? "Read " : "Write", Partition->PartitionType, Lba, BlockNum, (Token != NULL) ? Token->Event : NULL, Status)); + DEBUG ((DEBUG_BLKIO, + "Emmc%a(): Part %d Lba 0x%x BlkNo 0x%x Event %p with %r\n", + IsRead ? "Read " : "Write", Partition->PartitionType, Lba, BlockNum, + (Token != NULL) ? Token->Event : NULL, Status)); Lba += BlockNum; Buffer = (UINT8*)Buffer + BufferSize;