summaryrefslogtreecommitdiffstats
path: root/pcitool/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcitool/cli.c')
-rw-r--r--pcitool/cli.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pcitool/cli.c b/pcitool/cli.c
index 7cd8196..e0aaf28 100644
--- a/pcitool/cli.c
+++ b/pcitool/cli.c
@@ -39,6 +39,7 @@
#include "error.h"
#include "debug.h"
#include "model.h"
+#include "xml.h"
#include "locking.h"
/* defines */
@@ -348,6 +349,8 @@ void Usage(int argc, char *argv[], const char *format, ...) {
" Data can be specified as sequence of hexdecimal number or\n"
" a single value prefixed with '*'. In this case it will be\n"
" replicated the specified amount of times\n"
+" XML:\n"
+" -v -validates the xml file against xsd"
"\n\n",
argv[0]);
@@ -1003,8 +1006,8 @@ int ReadRegister(pcilib_t *handle, const pcilib_model_description_t *model_info,
format = model_info->banks[bank_id].format;
if (!format) format = "%lu";
- err = pcilib_read_register_by_id(handle, regid, &value);
- // err = pcilib_read_register(handle, bank, reg, &value);
+ err = pcilib_read_register_by_id(handle, regid, &value);
+ // err = pcilib_read_register(handle, bank, reg, &value);
if (err) printf("Error reading register %s\n", reg);
else {
printf("%s = ", reg);