From patchwork Sat Feb 10 13:24:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 871706 X-Patchwork-Delegate: hs@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="L7BJFQ9b"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zf5N34XHzz9sQm for ; Sun, 11 Feb 2018 08:55:46 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id D3852C21ECF; Sat, 10 Feb 2018 21:55:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id B9D6DC21CB6; Sat, 10 Feb 2018 21:55:37 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 18EE1C21C57; Sat, 10 Feb 2018 13:25:01 +0000 (UTC) Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by lists.denx.de (Postfix) with ESMTPS id 81293C21C4A for ; Sat, 10 Feb 2018 13:25:01 +0000 (UTC) Received: by mail-wr0-f195.google.com with SMTP id g4so992884wrb.6 for ; Sat, 10 Feb 2018 05:25:01 -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; bh=2k37FLwcugivqVLro7zhV1aaqkhz3tFoUKKOO2BmFLU=; b=L7BJFQ9bExFeTca5Q0TvhXnYlHlCxBEYy5ss8SxP2eQRwqmEvBPnuT8/MC1g3No1Cw mHT6X2MlHJBQA48mi8yzsh0olwwH7YtFH++fJayuKPHg3D3EY6Qr5AFqO2wq0lYXCjMi gV3wc1UBX/Xi6INci20IUUcNkOtxHnYxLAdfjiz9HfzMhxC5sKUPg9edUc/kN56lgyjv WXa71F6lYlA2agKkuNHb5XrwkrsCVtRiDPOZJplW6LuNS67HdN0sX75vGJ+UPTZGvBTt MZv4LkbOZ6Rn3y9545yalEJ78MSjQm9GWtG4N8iqIK4UYt5Pz0DBhBV6CIrcX2iccaHq I6gA== 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=2k37FLwcugivqVLro7zhV1aaqkhz3tFoUKKOO2BmFLU=; b=Lid4WXEZbnqpqEti0GcqGu2ydZHWpLTW0fMlvy1I6Xkyi+DO5PyXNcW+AL4pQy8qiT 6bdG6uq2HjiCImEBKHQ8UcY3mbpQvFhHipIWvjwJzoZi6aC4FGT52tNGUAJ1ehTXsBJP DRx/31MnGozT+AehLlR6pTyEBlrJB25/IswUsz97qzde5VbjbOl/o9Z1YI2GQ13sth/c nbdlIa8UYLvj5Sl1zG6Ewhv7uKLW8dYjAFZ0IGL65ThyUWUUIC5zm9OPjxh2FOdQz6AN 5Ka6fZtFbmTJDObgJn7qqsJMcuVqHkoLt5mkdOUMOqYpnCMxGRLJYeh011s9jDG6TvBI buSg== X-Gm-Message-State: APf1xPA+jsxRhtdn93FIUMKu2fOXB93wXnVKqMUy+PKLZY54UQZFNgLY 1Tl5v0GdDFLw1Czt3o93ICBgnA== X-Google-Smtp-Source: AH8x225GgiI2ZOaRqvH1dYmUPRKU/3j0R19tpOnauqLvEdp56Tj6+iWRyncZUg12Q8DC7dnJWNnCsw== X-Received: by 10.223.164.199 with SMTP id h7mr5492078wrb.83.1518269100804; Sat, 10 Feb 2018 05:25:00 -0800 (PST) Received: from localhost.localdomain ([85.119.94.113]) by smtp.gmail.com with ESMTPSA id a6sm11081197wri.10.2018.02.10.05.25.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 10 Feb 2018 05:25:00 -0800 (PST) From: Petr Vorel To: u-boot@lists.denx.de Date: Sat, 10 Feb 2018 14:24:13 +0100 Message-Id: <20180210132415.19725-1-petr.vorel@gmail.com> X-Mailer: git-send-email 2.16.1 X-Mailman-Approved-At: Sat, 10 Feb 2018 21:55:36 +0000 Cc: Joe Hershberger Subject: [U-Boot] [PATCH 1/3] ubifs: Reintroduce using CONFIG_UBIFS_SILENCE_MSG X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Use of CONFIG_UBIFS_SILENCE_MSG was added in 147162dac6 ("ubi: ubifs: Turn off verbose prints") Then it was removed in ff94bc40af ("mtd, ubi, ubifs: resync with Linux-3.14") Cc: Joe Hershberger Cc: Heiko Schocher Signed-off-by: Petr Vorel --- Note, not sure whether we need to keep this workaround. If not, it might be better to get rid of both CONFIG_UBI_SILENCE_MSG and CONFIG_UBIFS_SILENCE_MSG. Petr --- fs/ubifs/ubifs.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h index 1d89465205..b4ce706a8e 100644 --- a/fs/ubifs/ubifs.h +++ b/fs/ubifs/ubifs.h @@ -618,9 +618,13 @@ static inline ino_t parent_ino(struct dentry *dentry) #define UBIFS_VERSION 1 /* Normal UBIFS messages */ +#ifdef CONFIG_UBIFS_SILENCE_MSG +#define ubifs_msg(c, fmt, ...) +#else #define ubifs_msg(c, fmt, ...) \ pr_notice("UBIFS (ubi%d:%d): " fmt "\n", \ (c)->vi.ubi_num, (c)->vi.vol_id, ##__VA_ARGS__) +#endif /* UBIFS error messages */ #ifndef __UBOOT__ #define ubifs_err(c, fmt, ...) \