Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run_qemu.sh: use set -x to always log the qemu command #127

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Mar 10, 2025

This is the most complex and most important command: the name of this whole git repo is "run_qemu"!

This leaves a failing qemu command visible on the terminal.

When the qemu command does not fail, it's drown by all the other messages and barely visible in the logs.

This is the most complex and most important command: the name of this
whole git repo is "run_qemu"!

This leaves a failing qemu command visible on the terminal.

When the qemu command does not fail, it's drown by all the other
messages and barely visible in the logs.

Signed-off-by: Marc Herbert <[email protected]>
@marc-hb marc-hb marked this pull request as ready for review March 10, 2025 23:43
@marc-hb marc-hb requested a review from stellarhopper as a code owner March 10, 2025 23:43
@stellarhopper
Copy link
Member

Hm so I agree with printing the cmdline in the --debug case, but since we already have a --cmdline option to pretty print the command line here: https://github.com/pmem/run_qemu/blob/main/run_qemu.sh#L1607 , would it be better to refactor the bits to pretty print it into a function, and then call it and exit in the --cmdline case, and just call it in the --debug case before running it?

@marc-hb
Copy link
Collaborator Author

marc-hb commented Mar 11, 2025

we already have a --cmdline option to pretty print the command line here:

Sorry I missed that. Let me think.

@marc-hb marc-hb marked this pull request as draft March 11, 2025 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants