Skip to content

Commit

Permalink
lguest: fix verbose printing of device features.
Browse files Browse the repository at this point in the history
%02x is more appropriate for bytes than %08x.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Jul 28, 2008
1 parent 0a70721 commit 32c68e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/lguest/lguest.c
Original file line number Diff line number Diff line change
Expand Up @@ -960,10 +960,10 @@ static void update_device_status(struct device *dev)

verbose("Device %s OK: offered", dev->name);
for (i = 0; i < dev->desc->feature_len; i++)
verbose(" %08x", get_feature_bits(dev)[i]);
verbose(" %02x", get_feature_bits(dev)[i]);
verbose(", accepted");
for (i = 0; i < dev->desc->feature_len; i++)
verbose(" %08x", get_feature_bits(dev)
verbose(" %02x", get_feature_bits(dev)
[dev->desc->feature_len+i]);

if (dev->ready)
Expand Down

0 comments on commit 32c68e5

Please sign in to comment.