From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 45756C636CB for ; Sat, 28 Jan 2023 22:02:03 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 25F848574E; Sat, 28 Jan 2023 23:01:44 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="CuqLU6hF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D93BA85751; Sat, 28 Jan 2023 23:01:27 +0100 (CET) Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) (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 4A8BD85759 for ; Sat, 28 Jan 2023 23:01:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x12f.google.com with SMTP id z2so3174826ilq.2 for ; Sat, 28 Jan 2023 14:01:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IzJqxH8SI5vJ48mwGZ3cboLFLvQrXCQVzkXujTc1JVE=; b=CuqLU6hF9dvjjkvwDvt+1LX9m2R2T582l5dOk9sZPagjgl2v4tMNKrORrkkpU7rwH/ RoVLo6I3iOJ2opd5FFESTFVTZvEqf35Xj5i5hqGn+9whT1M01fuhbXoQyokgrtt0E4L2 5IPtUWpOw08ALOy2yCWlp8JmPgkpAVOnxtR5s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IzJqxH8SI5vJ48mwGZ3cboLFLvQrXCQVzkXujTc1JVE=; b=Cu0CNcxNfHmF5vegTLs6ltDva7VNDsyWoDhXuSjA3UPsHZ5siyCRF4aSugc6n7jkWp X/GSliddODlBTIzt+xnlrJy+rtZV1ws3SN2h/IaZ0GWWmDhfb7TcYr6wd4TG66TNr6zI YKUALYljvbToBmnkoq9HiO62TxWCRTATR3uXYBNnlgzsVUuAniFqsj86udQ1a9E/kZ7P RoJIqYE/uU3WG03XVWo2eoQ2mZ87zjISD4FEma2I3CZkYr6ubJKY059DH6Tyu0HLh1vT a2+gJxL8ouyn3NtRAXM96SsAH8VRj2r3KZA02mfKVj70EhsnEbq3s4vWAzijN2SFsbh2 wUZw== X-Gm-Message-State: AO0yUKXv8My9Ib1OlGk1MpTLszZrbRHEg2zm+YAnVWx8P0S/3rosZPc6 gOuLTSApCuakhrCZLLv8uuD03ZoEr+jlVzp2 X-Google-Smtp-Source: AK7set9uwo6rVHpo1zDvillH8AtyHoEGz0qcAcRJbDh6XmBczI7s1PRxzdZDPP8YLsVc6llZNfZPtw== X-Received: by 2002:a05:6e02:1541:b0:310:c510:780c with SMTP id j1-20020a056e02154100b00310c510780cmr6855610ilu.11.1674943266851; Sat, 28 Jan 2023 14:01:06 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id f15-20020a056e0212af00b0030f1be2e051sm2525521ilr.39.2023.01.28.14.01.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Jan 2023 14:01:06 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Albert Aribaud , Ilias Apalodimas , Simon Glass Subject: [PATCH 01/13] log: Add a category for filesystems Date: Sat, 28 Jan 2023 15:00:16 -0700 Message-Id: <20230128220028.53575-2-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog In-Reply-To: <20230128220028.53575-1-sjg@chromium.org> References: <20230128220028.53575-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.6 at phobos.denx.de X-Virus-Status: Clean Sometimes it is useful to log things related to filesystems. Add a new category and place it at the top of one of the FAT files. Signed-off-by: Simon Glass --- common/log.c | 1 + fs/fat/fat_write.c | 2 ++ include/log.h | 2 ++ 3 files changed, 5 insertions(+) diff --git a/common/log.c b/common/log.c index 57b71ed1b36..7cfc49bc28a 100644 --- a/common/log.c +++ b/common/log.c @@ -30,6 +30,7 @@ static const char *const log_cat_name[] = { "acpi", "boot", "event", + "fs", }; _Static_assert(ARRAY_SIZE(log_cat_name) == LOGC_COUNT - LOGC_NONE, diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c index 8ff2f6def08..00541ebc3a4 100644 --- a/fs/fat/fat_write.c +++ b/fs/fat/fat_write.c @@ -5,6 +5,8 @@ * R/W (V)FAT 12/16/32 filesystem implementation by Donggeun Kim */ +#define LOG_CATEGORY LOGC_FS + #include #include #include diff --git a/include/log.h b/include/log.h index 8a7b961bbfb..3bab40b6171 100644 --- a/include/log.h +++ b/include/log.h @@ -100,6 +100,8 @@ enum log_category_t { LOGC_BOOT, /** @LOGC_EVENT: Related to event and event handling */ LOGC_EVENT, + /** @LOGC_FS: Related to filesystems */ + LOGC_FS, /** @LOGC_COUNT: Number of log categories */ LOGC_COUNT, /** @LOGC_END: Sentinel value for lists of log categories */ -- 2.39.1.456.gfc5497dd1b-goog