summaryrefslogtreecommitdiff
path: root/security/trousers/files/patch-src-tcs-tcs_auth_mgr.c
blob: 7088a4f889b648c7a6b3e38f0241ed518166f760 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- src/tcs/tcs_auth_mgr.c.orig	2014-04-24 18:05:44 UTC
+++ src/tcs/tcs_auth_mgr.c
@@ -108,7 +108,7 @@ void
 auth_mgr_swap_in()
 {
 	if (auth_mgr.overflow[auth_mgr.of_tail] != NULL) {
-		LogDebug("waking up thread %lddd, auth slot has opened", THREAD_ID);
+		LogDebug("waking up thread %ld, auth slot has opened", THREAD_ID);
 		/* wake up the next sleeping thread in order and increment tail */
 		COND_SIGNAL(auth_mgr.overflow[auth_mgr.of_tail]);
 		auth_mgr.overflow[auth_mgr.of_tail] = NULL;
@@ -149,7 +149,7 @@ auth_mgr_swap_out(TCS_CONTEXT_HANDLE hCo
 		auth_mgr.overflow[auth_mgr.of_head] = cond;
 		auth_mgr.of_head = (auth_mgr.of_head + 1) % auth_mgr.overflow_size;
 		/* go to sleep */
-		LogDebug("thread %lddd going to sleep until auth slot opens", THREAD_ID);
+		LogDebug("thread %ld going to sleep until auth slot opens", THREAD_ID);
 		auth_mgr.sleeping_threads++;
 		COND_WAIT(cond, &tcsp_lock);
 		auth_mgr.sleeping_threads--;
@@ -180,7 +180,7 @@ auth_mgr_swap_out(TCS_CONTEXT_HANDLE hCo
 		auth_mgr.of_tail = 0;
 		auth_mgr.overflow[auth_mgr.of_head] = cond;
 		auth_mgr.of_head = (auth_mgr.of_head + 1) % auth_mgr.overflow_size;
-		LogDebug("thread %lddd going to sleep until auth slot opens", THREAD_ID);
+		LogDebug("thread %ld going to sleep until auth slot opens", THREAD_ID);
 		auth_mgr.sleeping_threads++;
 		COND_WAIT(cond, &tcsp_lock);
 		auth_mgr.sleeping_threads--;