Trivial fix for using xm dmesg -c
PATCH 1/1 Trivial fix for using xm dmesg -c
Hi,
The "xm dmesg -c" command to clear dmesg wasn't working for me:
[root@... ~]# xm dmesg -c
Error: 'xm dmesg' requires 0 argument.
dmesg [-c|--clear] Read or clear Xen's message buffer
This patch fixed it for me.
Thanks,
Dan
# HG changeset patch
# User [email protected] # Node ID 532b7355be80172464f4c73d22c0d309923ccf52 # Parent 13d6d993d79724d86a0c9ac556a7f884baed98ae
The xm dmesg command wasn't taking the -c/--clear options because of incorrect values to arg_check(). Patch simply allows for the possible option with arg_check().
Signed-off-by Daniel Stekloff <[email protected]>
tools/python/xen/xm/main.py +1 -1
@@ -762,7 +762,7 @@ os.execvp('xentop', ['xentop']) def xm_dmesg(args): - arg_check(args, "dmesg", 0) + arg_check(args, "dmesg", 0, 1) gopts = Opts(use="""[-c|--clear]
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel