diff options
author | Martin Nowack <martin@se.inf.tu-dresden.de> | 2014-02-14 15:12:52 +0100 |
---|---|---|
committer | Martin Nowack <martin@se.inf.tu-dresden.de> | 2014-09-14 21:09:51 +0200 |
commit | c5d1e302e8b538bf06eeee084a5537f59d2c1284 (patch) | |
tree | 5625d2ece77e2790b044ca7e07239047132e1b92 /runtime | |
parent | d283bdaaa38b36190139b20861dc60190ffc8ae1 (diff) | |
download | klee-c5d1e302e8b538bf06eeee084a5537f59d2c1284.tar.gz |
Replace fprintf with klee_warnings for POSIX lib
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/POSIX/fd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/POSIX/fd.c b/runtime/POSIX/fd.c index 1c75cd76..24b248e3 100644 --- a/runtime/POSIX/fd.c +++ b/runtime/POSIX/fd.c @@ -157,7 +157,7 @@ int __fd_open(const char *pathname, int flags, mode_t mode) { if ((flags & O_TRUNC) && (flags & O_RDONLY)) { /* The result of using O_TRUNC with O_RDONLY is undefined, so we return error */ - fprintf(stderr, "Undefined call to open(): O_TRUNC | O_RDONLY\n"); + klee_warning("Undefined call to open(): O_TRUNC | O_RDONLY\n"); errno = EACCES; return -1; } @@ -165,7 +165,7 @@ int __fd_open(const char *pathname, int flags, mode_t mode) { if ((flags & O_EXCL) && !(flags & O_CREAT)) { /* The result of using O_EXCL without O_CREAT is undefined, so we return error */ - fprintf(stderr, "Undefined call to open(): O_EXCL w/o O_RDONLY\n"); + klee_warning("Undefined call to open(): O_EXCL w/o O_RDONLY\n"); errno = EACCES; return -1; } @@ -461,7 +461,7 @@ ssize_t write(int fd, const void *buf, size_t count) { memcpy(f->dfile->contents + f->off, buf, actual_count); if (count != actual_count) - fprintf(stderr, "WARNING: write() ignores bytes.\n"); + klee_warning("write() ignores bytes.\n"); if (f->dfile == __exe_fs.sym_stdout) __exe_fs.stdout_writes += actual_count; |