Around various optional KTR macro CTR calls unused variables were used. Initialise the variable, use the local variable (otherwise set but not used) rather than the one passed in.
Also func is not a string literal which can be concatenated to a string, so use %s in the format string and (if needed) split up the CTR call into two calls.
Sponsored by: The FreeBSD Foundation (MFC wifi bits w/o breaking the build)
Around various optional KTR macro CTR calls unused variables were used. Initialise the variable, use the local variable (otherwise set but not used) rather than the one passed in. Also func is not a string literal which can be concatenated to a string, so use %s in the format string and (if needed) split up the CTR call into two calls.
Sponsored by: The FreeBSD Foundation (MFC wifi bits w/o breaking the build)