Bug 731744 - libguestfs should escape special/non-printing characters in debug output
Summary: libguestfs should escape special/non-printing characters in debug output
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
Depends On:
Blocks: libguestfs_rebase6.3 731742
TreeView+ depends on / blocked
Reported: 2011-08-18 14:27 UTC by Richard W.M. Jones
Modified: 2011-08-18 21:32 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 731742
Last Closed: 2011-08-18 21:32:11 UTC

Attachments (Terms of Use)

Description Richard W.M. Jones 2011-08-18 14:27:12 UTC
+++ This bug was initially created as a clone of Bug #731742 +++

Description of problem:

In seabios- from RHEL 6.2 the BIOS prints
special control characters to clear the screen etc.  Some lame
attempt at a splash screen.

Unfortunately libguestfs in debug mode (LIBGUESTFS_DEBUG=1)
simply echos these characters straight to stderr, meaning that
you see the screen being cleared and so on.

libguestfs should strip or escape these special characters in
its default debug mode.

Also we should document this here:

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Install seabios- (RHEL 6)
2. Install qemu-kvm- (RHEL 6)
3. Run guestfish -a /dev/null run -v
Actual results:

Observe that early in the debug output the screen is cleared.

Expected results:

The control characters should be escaped.

Note You need to log in before you can comment on or make changes to this bug.