Skip to content

Commit b172426

Browse files
author
Martin Belanger
committed
python: add eflags to discovery log page
Python bindings are extended to report the EFLAGS when a discovery command is issued. This was previously missing. Signed-off-by: Martin Belanger <[email protected]>
1 parent e99b63e commit b172426

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

libnvme/nvme.i

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ static void PyDict_SetItemStringDecRef(PyObject *p, const char *key, PyObject *v
269269
PyDict_SetItemStringDecRef(entry, "cntlid", val);
270270
val = PyLong_FromLong(e->asqsz);
271271
PyDict_SetItemStringDecRef(entry, "asqsz", val);
272+
val = PyLong_FromLong(e->eflags);
273+
PyDict_SetItemStringDecRef(entry, "eflags", val);
272274
PyList_SetItem(obj, i, entry); /* steals ref. to entry */
273275
}
274276
$result = obj;

0 commit comments

Comments
 (0)