]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/tc/cake.c
network: move logging from tc .fill_message to the callers
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Jan 2022 09:35:19 +0000 (10:35 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Jan 2022 10:45:16 +0000 (11:45 +0100)
commit16924f54af8876f6437ad6c87251ae92ebfba778
tree7632a78ea58d1a834d9d7f852f70c2facf3e54fd
parent0d75a90bb6bddb510729b2a4b61fb3c5a6098976
network: move logging from tc .fill_message to the callers

Structured initialization is used a bit more.

There were two kinds of log messages: about failed size calculations and
about failed appends to the message. I "downgraded" the first type to log_debug,
and moved the latter to the caller. This way there should be at most one high-priority
message.

I also changed sizeof(<type>) to sizeof(var) — there is less chance of select-and-paste
error in the second form.
19 files changed:
src/network/tc/cake.c
src/network/tc/codel.c
src/network/tc/drr.c
src/network/tc/ets.c
src/network/tc/fifo.c
src/network/tc/fq-codel.c
src/network/tc/fq-pie.c
src/network/tc/fq.c
src/network/tc/gred.c
src/network/tc/hhf.c
src/network/tc/htb.c
src/network/tc/netem.c
src/network/tc/pie.c
src/network/tc/qdisc.c
src/network/tc/qfq.c
src/network/tc/sfb.c
src/network/tc/sfq.c
src/network/tc/tbf.c
src/network/tc/tclass.c