diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-08-06 02:27:23 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-08-06 02:27:23 +0200 |
commit | 16ecf368c5cb4bebc3f5330bd0f25db06606f862 (patch) | |
tree | 493d08d6ee9ab5630eb96d4608d41bce3e071e49 | |
parent | 63bc897c9444b364b0364bfd04a0c87d9fe29307 (diff) | |
download | pcitool-16ecf368c5cb4bebc3f5330bd0f25db06606f862.tar.gz pcitool-16ecf368c5cb4bebc3f5330bd0f25db06606f862.tar.bz2 pcitool-16ecf368c5cb4bebc3f5330bd0f25db06606f862.tar.xz pcitool-16ecf368c5cb4bebc3f5330bd0f25db06606f862.zip |
In case of problematic locks report the error
-rw-r--r-- | pcitool/cli.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pcitool/cli.c b/pcitool/cli.c index 5df175d..6551f7b 100644 --- a/pcitool/cli.c +++ b/pcitool/cli.c @@ -2444,9 +2444,9 @@ int ListLocks(pcilib_t *ctx, int verbose) { pcilib_lock_id_t i; if (verbose) - printf("ID Refs Flags Locked Name\n"); + printf("ID Refs Flags Locked Name\n"); else - printf("ID Refs Flags Name\n"); + printf("ID Refs Flags Name\n"); printf("--------------------------------------------------------------------------------\n"); for (i = 0; i < PCILIB_MAX_LOCKS; i++) { @@ -2468,13 +2468,13 @@ int ListLocks(pcilib_t *ctx, int verbose) { switch (err) { case 0: pcilib_unlock(lock); - printf("No "); + printf("No "); break; case PCILIB_ERROR_TIMEOUT: - printf("Yes "); + printf("Yes "); break; default: - printf("Error "); + printf("Err: %3i ", err); } } printf("%s\n", name); |