From 3a3fc300141d9e0e6b71729d7fd604aa28447116 Mon Sep 17 00:00:00 2001 From: oharboe Date: Fri, 29 Feb 2008 11:31:49 +0000 Subject: - clean up target output strings a bit - open_file_from_path() now uses logging feature - open_file_from_path() no longer uses paths for anything but "r" mode. Fixes bug waiting to happen. git-svn-id: svn://svn.berlios.de/openocd/trunk@389 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/helper/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/helper/log.c') diff --git a/src/helper/log.c b/src/helper/log.c index de74f9d0..85861988 100644 --- a/src/helper/log.c +++ b/src/helper/log.c @@ -74,7 +74,7 @@ static void log_puts(enum log_levels level, const char *file, int line, const ch if (f != NULL) file = f + 1; - if (strchr(buffer, '\n')!=NULL) + if (strchr(string, '\n')!=NULL) { if (debug_level >= LOG_DEBUG) { -- cgit v1.2.3