浏览代码

*** empty log message ***

Andrei Pelinescu-Onciul 23 年之前
父节点
当前提交
da3257c88c
共有 2 个文件被更改,包括 7 次插入8 次删除
  1. 6 7
      Makefile.defs
  2. 1 1
      modules/tm/lock.c

+ 6 - 7
Makefile.defs

@@ -66,25 +66,24 @@ DEFS+= -DNAME='"$(NAME)"' -DVERSION='"$(RELEASE)"' -DARCH='"$(ARCH)"' \
 #-DNO_LOG
 
 #PROFILE=  -pg #set this if you want profiling
-mode = debug
-#mode = release
+#mode = debug
+mode = release
 
 # platform dependent settings
 
 
 #common
-CC=gcc #-3.0
-LD=gcc #-3.0
+CC=gcc
+LD=gcc
 MKDEP=gcc -MM $(DEFS)
 MKTAGS=ctags-exuberant -R .
 
 ifeq ($(mode), release)
 	CFLAGS=-O9 -funroll-loops  -Wcast-align $(PROFILE) -Winline\
-			-malign-double -malign-loops=4 -minline-all-stringops \
-			-march=athlon -mcpu=athlon
+	#		-malign-double -malign-loops=4 -minline-all-stringops \
+	#		-march=athlon -mcpu=athlon
 	#-Wmissing-prototypes
 	LDFLAGS=-Wl,-O2 -Wl,-E $(PROFILE)\
-			 -march=athlon
 	# we need -fPIC -DPIC only for shared objects, we don't need them for
 	# the executable file, because it's always loaded at a fixed address
 	# -andrei

+ 1 - 1
modules/tm/lock.c

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