Skip to contentSkip to conversation

Trivial fix for using xm dmesg -c

PATCH New Daniel Stekloff 1 participant 1 message May 30, 2006

lore
Share & tools
lore
#0 lore raw

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().

tools/python/xen/xm/main.py +1 -1
diff -r 13d6d993d797 -r 532b7355be80 tools/python/xen/xm/main.py
@@ -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