From patchwork Thu Nov 15 02:33:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 151156 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6454201ljp; Wed, 14 Nov 2018 18:35:27 -0800 (PST) X-Google-Smtp-Source: AJdET5d2zOCCIeN4q6lsDdinmeXA4miGNK5plk8vHDf1S66tvRygBqwKJDtTPM/nlHmSrFMxP0Wn X-Received: by 2002:a63:8e43:: with SMTP id k64mr4108756pge.346.1542249327570; Wed, 14 Nov 2018 18:35:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542249327; cv=none; d=google.com; s=arc-20160816; b=xhurjJSDb8dfP48YO1r+Z+rFih7xKmfP9Y0VMWJP7hpyUVkvezQ8IRjalun4Q397EE UyJMZDlj5Onf2hUr4dA3aumjGYGALfDam9JMhSBMfE1T0ocdh+2XVM4mP7YFmJuTnkEy IMn7lbcc+xKoIAa1Vqon+OcxETODx0InDJWUiB9y+6KUi/D/pd4V4ILFFbNMLsUHmubV a+koZRQdROZ7SzKP92eE3saOZ0gEfDd2giUlox0x3eqYsz+vvZ7HmY74u/RxZ0Gl66zy xilRErsyJAQWwP89k+IekoKYPvUZExlEDVPvMn1SOSnINwanXPNEBAcJ7WBcVxIiOgYn YF0g== 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:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=RMkqhioMRPoM+9YjXTOch2Wzb4ZP4nqF0QKy9ZP5X/E=; b=Eo8HBqIoZMrm9Z+q2RUdXFfNC9vRRWFuIoIzFbg3sZzeUiZ8F8xTTQWTQulHnEeoII VzF3QXrY10SLsJGhCeAcCXe8vy/5s+A8O1bHFYtB73a0kF2vOohzl0F24rC9cx3iIiq8 k6BaauS8q7lWq1svPRA8fpW7GsL4CMbV+yJKc48qisKm46DJnqmr/E2dGMrjmIUJA19e Einrc/QBTL1nw4oreCEkN2Usm7tMQ9Gw6Y210DtsdstjYL3Tn6Golis/LW86Ym6FMhPw WmM9iNZpOpBhmix+3pDjnOaEtq+ZCpy97L8F0fwM8IJ1i305GOn9CDUKixJaXXz/7M7M 6wMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dCb5GrZD; 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 d25si15164013pgd.88.2018.11.14.18.35.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 18:35:27 -0800 (PST) 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=dCb5GrZD; 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 7DBB02119174B; Wed, 14 Nov 2018 18:34:26 -0800 (PST) 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=2607:f8b0:4864:20::442; helo=mail-pf1-x442.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) (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 7A2932119073A for ; Wed, 14 Nov 2018 18:34:24 -0800 (PST) Received: by mail-pf1-x442.google.com with SMTP id e22-v6so8891785pfn.8 for ; Wed, 14 Nov 2018 18:34:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tC3chdOfdMiFKKtihaUa2a86E/XH7N4CV+EBAvH2khI=; b=dCb5GrZDE3uq9gVgqS2YI2rR76pW6kyuAekyjpN2SbPL4caVyJQVP68xirJdusAFoP nt1N4sNTq9IjHGrW9dh1sDSqa+9EbWPRbnlz3HrPzqd+IXE3J6l49uQntl8KEVWakuuQ X5/XlbQ9LUbhJf1o1QbrAhUtQ9KpCFUNsvDi0= 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=tC3chdOfdMiFKKtihaUa2a86E/XH7N4CV+EBAvH2khI=; b=prnHyMfggH+e0RY+G+4YSZ3KnJ7B8O40wuv5TcE9SSEv2FDxHu+cHMGdp+pTUs/tJN XQ+xVoiMrSar3FoI/H5few+EyZrOw5FuGwxEZPRPtG1FuCI21zda6qLRPPBdfCsMdh+e lpXIMsJr3vhqOrwQ7anfyB6c1td9suIPeVXYGbBeXNVADyaWjM2CqjYDRLs28UhDwA04 TTpQvQdzuGY4rL1oFAvR8kDUZQzsK+Bzcwi1oOkxp1q+b9LcO7DiUbAPHNk4G1AuhXRB 4+3gJqTA2cerIdViW/CkBYP0CXuq1fzrBbTbANiB4Ub2z7qLThPcfhAGB3IfHf8wvKGr M3bA== X-Gm-Message-State: AGRZ1gJiaZJIVR8ahq+H0PtM8zvsjEvpM4hJB6m9TWWHsJNzkud2pm7i ss+rzRbBdexXYZZuEHohfk8hAM/5EpC1mA== X-Received: by 2002:a63:f141:: with SMTP id o1mr4211798pgk.134.1542249264003; Wed, 14 Nov 2018 18:34:24 -0800 (PST) Received: from mba13.psav.com ([64.114.255.97]) by smtp.gmail.com with ESMTPSA id v185-v6sm27323393pfv.48.2018.11.14.18.34.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 18:34:23 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Wed, 14 Nov 2018 18:33:52 -0800 Message-Id: <20181115023353.20159-20-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181115023353.20159-1-ard.biesheuvel@linaro.org> References: <20181115023353.20159-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH edk2-staging 19/20] IntelUndiPkg/XGigUndiDxe: drop separate debug macros for DBG_LVL X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kamil.kacperski@intel.com, eric.jin@intel.com, pawel.orlowski@intel.com, michael.d.kinney@intel.com, harry.l.hsiung@intel.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" The DBG_LVL bit tests are already done at build time, so there is no point in having separate definitions, since they only result in unused variable warnings. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- IntelUndiPkg/XGigUndiDxe/Xgbe.h | 21 -------------------- 1 file changed, 21 deletions(-) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/IntelUndiPkg/XGigUndiDxe/Xgbe.h b/IntelUndiPkg/XGigUndiDxe/Xgbe.h index 2a904de5bf2f..ecfcc1032e8b 100644 --- a/IntelUndiPkg/XGigUndiDxe/Xgbe.h +++ b/IntelUndiPkg/XGigUndiDxe/Xgbe.h @@ -1112,7 +1112,6 @@ WaitForEnter ( ); // This is the Macro Section -#if DBG_LVL /** When specific debug level is currently set this macro prints debug message. @@ -1137,26 +1136,6 @@ WaitForEnter ( if ((DBG_LVL & Lvl) != 0) { \ WaitForEnter (); \ } -#else /* NOT DBG_LVL */ - -// Comment out the debug stuff -/** When DBG_LVL is not defined leave occurences of DEBUGPRINT blank - - @param[in] Lvl Debug level - @param[in] Msg Debug message - - @return None -**/ -#define DEBUGPRINT(Lvl, Msg) - -/** When DBG_LVL is not defined leave occurences of DEBUGWAIT blank - - @param[in] Lvl Debug level - - @return None -**/ -#define DEBUGWAIT(Lvl) -#endif /* DBG_LVL */ /** Delays code execution for specified time in milliseconds