about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
authorCristian Cadar <cristic@cs.stanford.edu>2012-11-27 13:01:14 +0000
committerCristian Cadar <cristic@cs.stanford.edu>2012-11-27 13:01:14 +0000
commit4dc7dfdb7b65a9ef5db4cf7c911327a87323c5a1 (patch)
tree52f843b50e8863ea26a87f5900256b48f7905783 /lib
parent16f7cfa06d9cd98e0451743bbe47c845ef240bfb (diff)
downloadklee-4dc7dfdb7b65a9ef5db4cf7c911327a87323c5a1.tar.gz
Warnings were incorrectly logged in messages.txt instead of warnings.txt.
Added "ONCE" before klee_warning_once messages to identify them as such.



git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@168699 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Core/Common.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Core/Common.cpp b/lib/Core/Common.cpp
index 4bf432cc..575a1f1b 100644
--- a/lib/Core/Common.cpp
+++ b/lib/Core/Common.cpp
@@ -51,7 +51,7 @@ static void klee_vmessage(const char *pfx, bool onlyToFile, const char *msg,
     va_end(ap2);
   }
 
-  klee_vfmessage(pfx ? klee_message_file : klee_warning_file, pfx, msg, ap);
+  klee_vfmessage(pfx ? klee_warning_file : klee_message_file, pfx, msg, ap);
 }
 
 
@@ -104,7 +104,7 @@ void klee::klee_warning_once(const void *id, const char *msg, ...) {
     
     va_list ap;
     va_start(ap, msg);
-    klee_vmessage("WARNING", false, msg, ap);
+    klee_vmessage("WARNING ONCE", false, msg, ap);
     va_end(ap);
   }
 }