From patchwork Mon Dec 21 14:50:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ferlandm@amotus.ca X-Patchwork-Id: 1419202 X-Patchwork-Delegate: sbabic@denx.de 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=none (p=none dis=none) header.from=amotus.ca 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 4D09mz0T9Mz9sWH for ; Tue, 22 Dec 2020 07:19:46 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1BD83829BF; Mon, 21 Dec 2020 21:19:30 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amotus.ca Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 3C6D682959; Mon, 21 Dec 2020 15:50:36 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (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 60DA18293A for ; Mon, 21 Dec 2020 15:50:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amotus.ca Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marc.ferland@gmail.com Received: by mail-qk1-f174.google.com with SMTP id 143so8910304qke.10 for ; Mon, 21 Dec 2020 06:50:33 -0800 (PST) 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=8NBk3WYyaD6an7eD/fEdPHo6z5G2Jh41PjhfmP35Xi8=; b=TYyJTVfCto5eN7nuQmrHpDkAtLz5z3ncURxJ7XA35BJxxfvNwtsvyA3pI8xOwLaTDE fhYWNumO9NIppkvFs2fFueKnAAkC1ObURHkfEYxY3GvMCAZTPXM8eLXtZayF3Y6v8Dqf sbsNOw42VDmihZG5Iq75Uy2YPit0DdCKHhnlBZIc2G+uua5I4FNa0H8BJ+FL4ADYO3lo wh1AAfSroKwresRMIV3cSwbz7zLgH7PoiXlhS1SO0j59rrDbildMoZ3TP5oOi1ToazB/ B3JRc6Sbc1zBDrShPGob+DdV0mbfjgvHJkB/Ln+yxvUWeKTqZEaD1xHVc+6wYagZlc4v oefg== X-Gm-Message-State: AOAM533sgHyGNhVuvMa7sYWwDmR4Fm+KFa2voFbtSUzFJs/gpi3iGg4f SxBqyK7kAvir1/oy7VeATG4qLy+r8h97ow== X-Google-Smtp-Source: ABdhPJxxVSFv3KK2/Ravpx75GcrvO3AE86O0KnUHCEI3OVpo8nNW4yX0fSpeRsp9BCE6AS4xbZBXsw== X-Received: by 2002:a37:c0b:: with SMTP id 11mr17708108qkm.32.1608562232120; Mon, 21 Dec 2020 06:50:32 -0800 (PST) Received: from mfe-desktop.ad.global (modemcable182.194-37-24.static.videotron.ca. [24.37.194.182]) by smtp.googlemail.com with ESMTPSA id g10sm11085813qkb.8.2020.12.21.06.50.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Dec 2020 06:50:31 -0800 (PST) From: ferlandm@amotus.ca To: u-boot@lists.denx.de Cc: Marc Ferland Subject: [PATCH v2] i2c: mxc_i2c: improve error message readability Date: Mon, 21 Dec 2020 09:50:16 -0500 Message-Id: <20201221145016.3604331-1-ferlandm@amotus.ca> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201218194303.3510162-1-ferlandm@amotus.ca> References: <20201218194303.3510162-1-ferlandm@amotus.ca> MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 21 Dec 2020 21:19:25 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.3 at phobos.denx.de X-Virus-Status: Clean From: Marc Ferland Use 0x%2lx to print the i2c bus base address in hexadecimal format instead of printing as an integer. Signed-off-by: Marc Ferland Reviewed-by: Fabio Estevam --- Changes for v2: - Add commit message drivers/i2c/mxc_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 7609594bd0..d486dab043 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@ -954,7 +954,7 @@ static int mxc_i2c_probe(struct udevice *bus) !dm_gpio_is_valid(&i2c_bus->scl_gpio) || ret || ret2) { dev_err(bus, - "i2c bus %d at %lu, fail to request scl/sda gpio\n", + "i2c bus %d at 0x%2lx, fail to request scl/sda gpio\n", bus->seq, i2c_bus->base); return -EINVAL; }