summaryrefslogtreecommitdiff
path: root/debugger
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2015-09-07 11:32:05 +0100
committerThomas Wood <thomas.wood@intel.com>2015-09-08 16:15:16 +0100
commit1dcace30184c812f1e12ee10cc827accce140cc0 (patch)
tree97fcb91aa25b376a6ae320529da8c7785799a14c /debugger
parentf0381d1abebfc5b7e24a835dfe1c2344396c0304 (diff)
build: fix unused-result warnings
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'debugger')
-rw-r--r--debugger/eudb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/debugger/eudb.c b/debugger/eudb.c
index 39c5cca2..275a27ef 100644
--- a/debugger/eudb.c
+++ b/debugger/eudb.c
@@ -147,7 +147,9 @@ dump_debug(void *buf, size_t count) {
if (!debug_fd)
debug_fd = open(debug_file, O_CREAT | O_WRONLY | O_TRUNC, S_IRWXO);
- write(debug_fd, buf, count);
+ if (write(debug_fd, buf, count) == -1)
+ fprintf(stderr, "Error writing to debug file: %s\n",
+ strerror(errno));
}
static volatile void *