]> xenbits.xensource.com Git - people/liuw/xen.git/commitdiff
tools/python/xs: fix two comments
authorWei Liu <wei.liu2@citrix.com>
Mon, 29 Feb 2016 16:01:24 +0000 (16:01 +0000)
committerWei Liu <wei.liu2@citrix.com>
Tue, 15 Mar 2016 16:32:32 +0000 (16:32 +0000)
These two functions require transaction handle as the first argument.

Reported-by: Sergei Lebedev <sergei.a.lebedev@gmail.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
tools/python/xen/lowlevel/xs/xs.c

index 76ae3ac91d15ea48b3d48b81947c8ce838fbb560..a86edbe06f3370f71362f8c469d6d8e91041ce21 100644 (file)
@@ -191,7 +191,8 @@ static PyObject *xspy_ls(XsHandle *self, PyObject *args)
 
 #define xspy_mkdir_doc "\n"                                    \
        "Make a directory.\n"                                   \
-       " path [string]: path to directory to create.\n"        \
+       " transaction [string]: transaction handle.\n"          \
+       " path [string]       : path to directory to create.\n" \
        "\n"                                                    \
        "Returns None on success.\n"                            \
        "Raises xen.lowlevel.xs.Error on error.\n"                      \
@@ -555,7 +556,8 @@ static PyObject *xspy_transaction_start(XsHandle *self)
 #define xspy_transaction_end_doc "\n"                                  \
        "End the current transaction.\n"                                \
        "Attempts to commit the transaction unless abort is true.\n"    \
-       " abort [int]: abort flag (default 0).\n"                       \
+       " transaction [string] : transaction handle.\n"                 \
+       " abort [int]          : abort flag (default 0).\n"             \
        "\n"                                                            \
        "Returns True on success, False if you need to try again.\n"    \
        "Raises xen.lowlevel.xs.Error on error.\n"                              \