From patchwork Tue Jan 21 22:10:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Ermakov X-Patchwork-Id: 1227187 X-Patchwork-Delegate: trini@ti.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=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=tiFERHNe; 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) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 482jpT73jbz9sP6 for ; Wed, 22 Jan 2020 22:28:49 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3B47781676; Wed, 22 Jan 2020 12:28:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (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=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tiFERHNe"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0BB15817BE; Tue, 21 Jan 2020 23:10:54 +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=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) (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 40E55817BE for ; Tue, 21 Jan 2020 23:10:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=coffe92@gmail.com Received: by mail-lf1-x141.google.com with SMTP id z26so3621761lfg.13 for ; Tue, 21 Jan 2020 14:10:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MpPO1+vo70tByeAYvVj+1C71iRjbVMWKpw8nOtRu/bU=; b=tiFERHNeW7dD8BLjMBWH7cuqj/LgErDrvDVkKBH92A/TpY58xUyLy2PmPh/WmCWnMD +eFtbFcrmyqyZ32UNK3UjvS+GC9qAl2rb9Dn3fA+w03IDq7DMOaFS05DCYXGXOzL74Uw nJXd7YNFuaC38Kk9ozc3msdO+amvnMJyGaltQTs41ar323YkGE6rv7vvoMmb1ylU6Y+Z wHSghLYktMvVrXTyGbBRmle2TK7TFfW/3Lz52FC8dCxv3j8Kaf7JMbfAiT2Rte5b+O7V 0ZZbsfly0V7+Av31d6gCqJjQ4Mmvx9CMRkizPH36Cnvg8rpTi24vQrHpMrzZuKIu68Nc RpcA== 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:mime-version :content-transfer-encoding; bh=MpPO1+vo70tByeAYvVj+1C71iRjbVMWKpw8nOtRu/bU=; b=XqXmVyAkhFYE01I0CucocJBxHb94V8wMVFo9ugnUBGGjNwd9INWjVpuLk1IDhCW5kl Hqo+ApaiQ7BvZ5BIu95nXMvNhxG8Uq/Fa+1tM0KQI1a+dqy0qPyWonMlEg9Mwbk5w86X Vi3lFEochQ2bW/mJQSIj9t4QBO02IGlGHjyf6ciMJLuSNpOkDqHgogHSDX+OS3fzzO2M ui3lB2SUKVrcIxqdDfACaJS3LeqezlxCpcs8iqYwN8L80sH67l0LLGYLAkFfdAe2kaWW 424zCoKzySKC/6fXJtVuCam9Mqrul6o+IYP0JPjTlCZXNxhVR6jiaAiubY6wZHGKmwQx jzrQ== X-Gm-Message-State: APjAAAVQRm2P87xRZZOW+cfOH8EFjmjNaOYNHFHOF6EmZszK68+fGVHC E9JGRQTIpCLd+fgbnG9r4AJwtcMR0co= X-Google-Smtp-Source: APXvYqzvH8tjF53a0Dkt09axBp6jXCsIlZYPGOf+5bCxluQX6BOOSqagwsFmDND+YlpgEoUUDRJFlA== X-Received: by 2002:a19:5212:: with SMTP id m18mr3910722lfb.7.1579644648449; Tue, 21 Jan 2020 14:10:48 -0800 (PST) Received: from localhost.localdomain ([193.169.4.174]) by smtp.gmail.com with ESMTPSA id 144sm19992252lfi.67.2020.01.21.14.10.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jan 2020 14:10:48 -0800 (PST) From: Nikita Ermakov To: u-boot@lists.denx.de Subject: [PATCH] Output information about device look up failure. Date: Wed, 22 Jan 2020 01:10:05 +0300 Message-Id: <20200121221005.9303-1-coffe92@gmail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 22 Jan 2020 12:28:44 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stephen Warren Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean In the case of error while device look up (e.g. wrong interface type was specified) put a message about it even if debug was not enable. Signed-off-by: Nikita Ermakov --- disk/part.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/disk/part.c b/disk/part.c index 8982ef3bae..280e3e4f42 100644 --- a/disk/part.c +++ b/disk/part.c @@ -513,7 +513,10 @@ int blk_get_device_part_str(const char *ifname, const char *dev_part_str, /* Look up the device */ dev = blk_get_device_by_str(ifname, dev_str, dev_desc); if (dev < 0) + { + printf("** Look up for the device %s %s failed **\n", ifname, dev_str); goto cleanup; + } /* Convert partition ID string to number */ if (!part_str || !*part_str) {