[RFE] option to suppress gemu_log() output

Bug #1828723 reported by Thomas Moschny
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Expired
Undecided
Unassigned

Bug Description

With user mode emulation, messages from genu_log() are emitted unconditionally to stderr. I didn't find a way to suppress them. It would be nice to have options similar to the -D/-d options to be able to filter and/or redirect the output.

My use case is chroot/container execution for different architectures via binfmt. In this case it will appear as if the binary in question had emitted messages like "Unsupported setsockopt ..." to stderr while in fact the message came from qemu-*-static.

Tags: linux-user
Revision history for this message
Philippe Mathieu-Daudé (philmd) wrote :
tags: added: linux-user
Revision history for this message
Alex Bennée (ajbennee) wrote :

The -d/-D options should work in linux-user as well. You can also set QEMU_LOG_FILENAME and QEMU_LOG environment variables. Do these not work for you?

Revision history for this message
Alex Bennée (ajbennee) wrote :

Although arguably the line:

  gemu_log("Unsupported setsockopt level=%d optname=%d\n", level, optname);

Could be

  qemu_log_mask(LOG_UNIMP,....)

Not sure where gemu_log is used, it seems to be strace related.

Revision history for this message
Thomas Moschny (moschny) wrote :

Indeed I think gemu_log() is the problem here.

Revision history for this message
Thomas Huth (th-huth) wrote : Moved bug report

This is an automated cleanup. This bug report has been moved to QEMU's
new bug tracker on gitlab.com and thus gets marked as 'expired' now.
Please continue with the discussion here:

 https://gitlab.com/qemu-project/qemu/-/issues/171

Changed in qemu:
status: New → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.