From patchwork Sat May 23 16:38:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 1296722 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=EETQiNVJ; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49TpxR1NFLz9sPK for ; Sun, 24 May 2020 02:40:11 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 00F4D81799; Sat, 23 May 2020 18:39:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="EETQiNVJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5363A8172F; Sat, 23 May 2020 18:39:16 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 26B10812FB for ; Sat, 23 May 2020 18:39:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.vasut@gmail.com Received: by mail-ej1-x642.google.com with SMTP id se13so16367521ejb.9 for ; Sat, 23 May 2020 09:39:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MkNYvpEnybhaVXPcfX9U9xeYzCNrhZEDrYcSkXjoZww=; b=EETQiNVJdbTKT/I4Cc2cSMqPpMo/U7xuXBBHXrBYSeKAcXXPbtAot4eFaP8RgKmRw7 hsMzBLRKfobNsh+uVlRQZvl/zizn8m8WEJBOS+o6Ph3nM6BcMUZwub/4s/tVHaUQL5bD Um66E6Qu4H6vObT816mVVHn6kx/T/SnrYAlhHs8mb9D/iWei8y+HzItyR1llPtp9rsWP e9gxYKt5H4wT8KZVPWfvPuVwMadDb0F2IrPhRC+C1XD6dXI2dMP7JOjUsXc1D/IcXJht EG/TOqRrby/LAxJFFSie6TJYHPFkqwOaN9ehv6kwp9WPGH8cvJxB3d3tQPmZMRFPaldt E2EQ== 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=MkNYvpEnybhaVXPcfX9U9xeYzCNrhZEDrYcSkXjoZww=; b=gYFQ8GDaf7NNyRJMkNplLqwuvq8p/3qNNDR5pnL4AK5VTC9aXg5p3CRGuEeQBy1xA2 M559VB4LgLIfj7eUeL0RGzFvlUWRC+qVrTjIgWE3UDm3ozZMY4ex7Fv+0sacK9FSyshd 5qhbY4DQjkRPbmaIkOTYHvePyCqHSplu4EInWtDwhafj/0rJxaJc9eOuHzKkOsPmcl+5 KhsvDQsDaoMQnLAbZpWy1l1I9IiC8iqBM2WK+8UUpR7j2+JfT2srY/wnnPqPWyhZFP0h BrIGuwiu9k0NdhqwrK4OFE6E4CR/4pLg0FW+j6szxfPAbrLYiAHDpbaGZZ1Xy/4Ph5fP 8imQ== X-Gm-Message-State: AOAM533KDy+sD5uKXERnjejvshfBbJUIuxv78+iS6G+AQ+brHUtOrlkf IoffsGh77DNeaJSicDeEw/rnnJ7p X-Google-Smtp-Source: ABdhPJxn8jr4dhcxPqtJmptwrrS7mQemqxm9p72NALShdoahPd/0bZQ8pTK8l6lB6lrZ5jXFiStz0A== X-Received: by 2002:a17:907:41dd:: with SMTP id og21mr13166027ejb.368.1590251943466; Sat, 23 May 2020 09:39:03 -0700 (PDT) Received: from desktop.lan (ip-86-49-35-8.net.upcbroadband.cz. [86.49.35.8]) by smtp.gmail.com with ESMTPSA id p25sm10456174eds.76.2020.05.23.09.39.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 May 2020 09:39:02 -0700 (PDT) From: Marek Vasut X-Google-Original-From: Marek Vasut To: u-boot@lists.denx.de Cc: joe.hershberger@ni.com, Marek Vasut Subject: [PATCH 03/30] net: eepro100: Use plain debug() Date: Sat, 23 May 2020 18:38:10 +0200 Message-Id: <20200523163837.407592-3-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200523163837.407592-1-marek.vasut+renesas@gmail.com> References: <20200523163837.407592-1-marek.vasut+renesas@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean Convert all the ifdef DEBUG to plain debug(), no functional change. Signed-off-by: Marek Vasut Reviewed-By: Ramon Fried #include -#undef DEBUG - /* Ethernet chip registers. */ #define SCBStatus 0 /* Rx/Command Unit Status *Word* */ #define SCBIntAckByte 1 /* Rx/Command Unit STAT/ACK byte */ @@ -392,10 +390,8 @@ int eepro100_initialize (bd_t * bis) pci_read_config_dword (devno, PCI_BASE_ADDRESS_0, &iobase); iobase &= ~0xf; -#ifdef DEBUG - printf ("eepro100: Intel i82559 PCI EtherExpressPro @0x%x\n", - iobase); -#endif + debug("eepro100: Intel i82559 PCI EtherExpressPro @0x%x\n", + iobase); pci_write_config_dword (devno, PCI_COMMAND, @@ -810,10 +806,7 @@ static void read_hw_addr (struct eth_device *dev, bd_t * bis) if (sum != 0xBABA) { memset (dev->enetaddr, 0, ETH_ALEN); -#ifdef DEBUG - printf ("%s: Invalid EEPROM checksum %#4.4x, " - "check settings before activating this device!\n", - dev->name, sum); -#endif + debug("%s: Invalid EEPROM checksum %#4.4x, check settings before activating this device!\n", + dev->name, sum); } }