flog: fix some codespell warnings

Brought to you by

    codespell -w

(using codespell v2.1.0).

[v2: use "make indent" on the result]

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin 2022-03-30 18:45:16 -07:00 committed by Andrei Vagin
parent d355c3681a
commit 6eafe4ea7a
2 changed files with 21 additions and 22 deletions

View file

@ -95,7 +95,7 @@ int flog_map_buf(int fdout)
/*
* Two buffers are mmapped into memory. A new one is mapped when a first
* one is completly filled.
* one is completely filled.
*/
if (fbuf && (mbuf - fbuf < BUF_SIZE))
return 0;

View file

@ -129,31 +129,30 @@ int main(int argc, char *argv[])
return 0;
usage:
fprintf(stderr,
"flog [--mode binary|dprintf] [--output stdout|stderr|filename] [--decode] [--iter number]\n"
"\n"
fprintf(stderr, "flog [--mode binary|dprintf] [--output stdout|stderr|filename] [--decode] [--iter number]\n"
"\n"
"Examples:\n"
"\n"
"Examples:\n"
"\n"
" - run 100000 iterations of instant message processing (immediate dprintf calls)\n"
"\n"
" flog -m dprintf -i 100000\n"
"\n"
" - run 100000 iterations of instant message processing (immediate dprintf calls)\n"
"\n"
" flog -m dprintf -i 100000\n"
"\n"
" - run 100000 iterations in binary mode without processing (queue messages only)\n"
"\n"
" flog -i 100000\n"
"\n"
" - run 100000 iterations in binary mode without processing (queue messages only)\n"
"\n"
" flog -i 100000\n"
"\n"
" - run 100000 iterations in binary mode with decoding after\n"
"\n"
" flog -i 100000 -d\n"
"\n"
" - run 100000 iterations in binary mode with decoding after\n"
"\n"
" flog -i 100000 -d\n"
"\n"
" - run 100000 iterations in binary mode with decoding after, writting results into 'out' file\n"
"\n"
" flog -i 100000 -d -o out\n"
"\n");
" - run 100000 iterations in binary mode with decoding after, writing results into 'out' file\n"
"\n"
" flog -i 100000 -d -o out\n"
"\n");
return 1;
}