[PATCH 22/34] pi_stress: add missing argument in pi_error() call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



src/pi_tests/pi_stress.c: In function 'high_priority':
src/pi_tests/pi_stress.c:993:9: warning: format '%x' expects a matching 'unsigned int' argument [-Wformat=]
        ("high_priority[%d]: pthread_barrier_wait(finish): %x",
         ^

Signed-off-by: Tommi Rantala <tommi.t.rantala@xxxxxxxxx>
---
 src/pi_tests/pi_stress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pi_tests/pi_stress.c b/src/pi_tests/pi_stress.c
index 8972122..e29956c 100644
--- a/src/pi_tests/pi_stress.c
+++ b/src/pi_tests/pi_stress.c
@@ -991,7 +991,7 @@ void *high_priority(void *arg)
 		if (status && status != PTHREAD_BARRIER_SERIAL_THREAD) {
 			pi_error
 			    ("high_priority[%d]: pthread_barrier_wait(finish): %x",
-			     status);
+			     p->id, status);
 			return NULL;
 		}
 		/* update the group stats */
-- 
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux