summaryrefslogtreecommitdiff
path: root/Base/usr
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2021-01-18 17:25:44 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-22 22:14:30 +0100
commitea7b7d8ceb2f48127b196a4eaf958bb387bb61da (patch)
tree81ef2a3848a8b64ed0960f0c9055c216390b8baf /Base/usr
parentfb8d3635d912a40a66a9e4b50454cfdd83f71d16 (diff)
downloadserenity-ea7b7d8ceb2f48127b196a4eaf958bb387bb61da.zip
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it easier to find potentially introduced bugs with git bisect.
Diffstat (limited to 'Base/usr')
-rw-r--r--Base/usr/share/man/man1/test-js.md2
-rw-r--r--Base/usr/share/man/man3/basename.md8
-rw-r--r--Base/usr/share/man/man3/dirname.md8
3 files changed, 9 insertions, 9 deletions
diff --git a/Base/usr/share/man/man1/test-js.md b/Base/usr/share/man/man1/test-js.md
index d1a6be034e..451743720f 100644
--- a/Base/usr/share/man/man1/test-js.md
+++ b/Base/usr/share/man/man1/test-js.md
@@ -19,7 +19,7 @@ It also supports the [test262 parser tests](https://github.com/tc39/test262-pars
The test root directory is assumed to be `/home/anon/js-tests`, or `$SERENITY_ROOT/Libraries/LibJS/Tests`
when using the Lagom build. Optionally you can pass a custom path to `test-js` to override these defaults.
-You can disable output from `dbg()` calls by setting the `DISABLE_DBG_OUTPUT` environment variable.
+You can disable output from `dbgln()` calls by setting the `DISABLE_DBG_OUTPUT` environment variable.
## Options
diff --git a/Base/usr/share/man/man3/basename.md b/Base/usr/share/man/man3/basename.md
index 716ef8f29e..f670f4129f 100644
--- a/Base/usr/share/man/man3/basename.md
+++ b/Base/usr/share/man/man3/basename.md
@@ -35,16 +35,16 @@ buffer while using the returned string.
int main()
{
char path1[] = "/home/anon/ReadMe.md";
- dbg() << basename(path1); // should be "ReadMe.md"
+ dbgln("{}", basename(path1)); // should be "ReadMe.md"
char path2[] = "foo/bar/";
- dbg() << basename(path2); // should be "bar"
+ dbgln("{}", basename(path2)); // should be "bar"
char path3[] = "foo";
- dbg() << basename(path3); // should be "foo"
+ dbgln("{}", basename(path3)); // should be "foo"
char path4[] = "/";
- dbg() << basename(path4); // should be "/"
+ dbgln("{}", basename(path4)); // should be "/"
}
```
diff --git a/Base/usr/share/man/man3/dirname.md b/Base/usr/share/man/man3/dirname.md
index 6a101d9dbf..509628716d 100644
--- a/Base/usr/share/man/man3/dirname.md
+++ b/Base/usr/share/man/man3/dirname.md
@@ -36,16 +36,16 @@ buffer while using the returned string.
int main()
{
char path1[] = "/home/anon/ReadMe.md";
- dbg() << dirname(path1); // should be "/home/anon"
+ dbgln("{}", dirname(path1)); // should be "/home/anon"
char path2[] = "foo/bar/";
- dbg() << dirname(path2); // should be "foo"
+ dbgln("{}", dirname(path2)); // should be "foo"
char path3[] = "foo";
- dbg() << dirname(path3); // should be "."
+ dbgln("{}", dirname(path3)); // should be "."
char path4[] = "/";
- dbg() << dirname(path4); // should be "/"
+ dbgln("{}", dirname(path4)); // should be "/"
}
```