tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit bb603f7b2af7e7eb0340d20ed5b002c3ce13e27f
parent a7062260c5b0b948e314104c3792dbe4572275ef
Author: Ben Campbell <benc@thunderbird.net>
Date:   Mon, 13 Oct 2025 06:46:37 +0000

Bug 1993604 - Add missing debug level param to MOZ_LOG_FMT() source docs. r=firefox-source-docs-reviewers,sylvestre DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D268230

Diffstat:
Mxpcom/docs/fmt-in-gecko.md | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xpcom/docs/fmt-in-gecko.md b/xpcom/docs/fmt-in-gecko.md @@ -65,7 +65,7 @@ auto [out, size] = fmt::format_to(bufFmt, "{}", p); assert(!strcmp("POD: mA: 4.3, mB: 8", bufFmt)); fmt::println(FMT_STRING("### debug: {}"), p); fmt::print(stderr, FMT_STRING("### debug to stderr {}\n"), p); -MOZ_LOG_FMT(gLogModule, "Important: {}", p); +MOZ_LOG_FMT(gLogModule, LogLevel::Warning, "Important: {}", p); ``` # Formatting sequences @@ -87,7 +87,7 @@ ASSERT_STREQ("0x69, 0xd2, 0x3c, 0xa5", bufFmt); `MOZ_LOG_FMT` is like `MOZ_LOG`, but takes an `{fmt}`-style format string: ```c++ -MOZ_LOG_FMT(gLogModule, "{}x{} = {}", 3, 3, 3*3); +MOZ_LOG_FMT(gLogModule, LogLevel::Verbose, "{}x{} = {}", 3, 3, 3*3); ``` Unlike with `MOZ_LOG`, it is unnecessary to put an extra pair of parenthesis around the format and argument list.