From: Zhigang Wang Date: Wed, 23 Mar 2016 17:45:37 +0000 (-0400) Subject: tools/python/xc: fix tmem_control parameter parsing X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~1474 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fab9839e805819b9562c9f00d0105d5e9e03bbdc;p=xen.git tools/python/xc: fix tmem_control parameter parsing There should be 6 instead of 7 arguments now for tmem_control() . which was done in commit 54a51b1766fd433b95e63834eb15d4b1f70271de "tmem: Remove xc_tmem_control mystical arg3" which missed this change. Signed-off-by: Zhigang Wang Signed-off-by: Konrad Rzeszutek Wilk Acked-by: Wei Liu --- diff --git a/tools/python/xen/lowlevel/xc/xc.c b/tools/python/xen/lowlevel/xc/xc.c index c40a4e91a9..ff714d79bb 100644 --- a/tools/python/xen/lowlevel/xc/xc.c +++ b/tools/python/xen/lowlevel/xc/xc.c @@ -1620,7 +1620,7 @@ static PyObject *pyxc_tmem_control(XcObject *self, static char *kwd_list[] = { "pool_id", "subop", "cli_id", "arg1", "arg2", "buf", NULL }; - if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiiiiis", kwd_list, + if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiiiis", kwd_list, &pool_id, &subop, &cli_id, &arg1, &arg2, &buf) ) return NULL;