Fix logging category usage


We should pass the name of the category as a parameter, not the result
of the function call.

Amends 00f86fd8431e3c89d2e626cbaf965b75bf2ea8d4.

Pick-to: 6.11 6.10 6.8 6.5
Change-Id: Ic906b25d8785568f12d7184ea3c1c1585f52a4bc
Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com>
commitafa59ad02e0ac8625aa033629297df16a98595b6
parentc1a0e970ef7b02ca49001b4dd0b9bdcbb933c70a
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeFri, 27 Feb 2026 11:48:02 +0100