From 16ecf368c5cb4bebc3f5330bd0f25db06606f862 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 6 Aug 2015 02:27:23 +0200 Subject: In case of problematic locks report the error --- pcitool/cli.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pcitool') 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); -- cgit v1.2.3