quadlet: explicitly discard logToKmsg return in Logf

Logf now always writes to stderr, so the kmsg write is best-effort and
its bool return is intentionally ignored. Make the discard explicit with
`_ = logToKmsg(line)` per review, rather than leaving it implicit.

Signed-off-by: mvanhorn <mvanhorn@gmail.com>
This commit is contained in:
mvanhorn 2026-07-15 09:20:42 -07:00
parent f49b4b3f84
commit 6d57281d6a
No known key found for this signature in database

View file

@ -70,7 +70,7 @@ func Logf(format string, a ...any) {
s := fmt.Sprintf(format, a...)
line := fmt.Sprintf("quadlet-generator[%d]: %s", os.Getpid(), s)
logToKmsg(line)
_ = logToKmsg(line)
fmt.Fprintf(os.Stderr, "%s\n", line)
os.Stderr.Sync()