소스 검색

- semop debugging

Andrei Pelinescu-Onciul 23 년 전
부모
커밋
36b51cf93c
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      modules/tm/lock.c

+ 5 - 1
modules/tm/lock.c

@@ -230,7 +230,11 @@ tryagain:
 		if (errno==EINTR) {
 			DBG("signal received in a semaphore\n");
 			goto tryagain;
-		} else LOG(L_CRIT, "ERROR: change_semaphore: %s\n", strerror(errno));
+		} else {
+			LOG(L_CRIT, "ERROR: change_semaphore(%x, %x, 1) : %s\n",
+					s.semaphore.set, &pbuf,
+					strerror(errno));
+			
 	}
 	return r;
 }