]> git.sur5r.net Git - openocd/commitdiff
Pavel Chromy: fix logging syntax error + formatting & removing obsolete comments.
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 4 Jun 2008 11:09:41 +0000 (11:09 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 4 Jun 2008 11:09:41 +0000 (11:09 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@702 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/helper/configuration.c
src/helper/log.h
src/jtag/jtag.c

index fb5b797e4159787286217771b1910d1443162053..2d84d9e60e3e9feac3b3bfe0fa9bb6b88c02114f 100644 (file)
@@ -84,7 +84,7 @@ FILE *open_file_from_path (char *file, char *mode)
        }
 
        if (fp)
-                       LOG_DEBUG("opened %s", full_path);
+               LOG_DEBUG("opened %s", full_path);
 
        return fp;
        }
index 6d61cf5f267e0a6fb762f436fbf235cf27a12860..37490a8603d2af47bd4bc0cdbda785d785cb8e00 100644 (file)
@@ -80,7 +80,7 @@ extern int debug_level;
 
 
 #define LOG_DEBUG(expr ...) \
-               if (debug_level >= LOG_LVL_DEBUG) { log_printf_lf (LOG_LVL_DEBUG, __FILE__, __LINE__, __FUNCTION__, expr); }
+               ((debug_level >= LOG_LVL_DEBUG) ? log_printf_lf (LOG_LVL_DEBUG, __FILE__, __LINE__, __FUNCTION__, expr) , 0 : 0)
 
 #define LOG_INFO(expr ...) \
                log_printf_lf (LOG_LVL_INFO, __FILE__, __LINE__, __FUNCTION__, expr)
index cd4b255a90ae07ab6e95262a3bbaa098223a3c56..3a1fbae9d18717e94a7836efc69dcad44d962f05 100644 (file)
@@ -1236,7 +1236,7 @@ void jtag_set_check_value(scan_field_t *field, u8 *value, u8 *mask, error_handle
                field->in_handler = jtag_check_value;
        else
                field->in_handler = NULL;       /* No check, e.g. embeddedice uses value==NULL to indicate no check */
-       field->in_handler_priv = NULL;  /* this will be filled in at the invocation site to point to the field duplicate */ 
+       field->in_handler_priv = NULL;
        field->in_check_value = value;
        field->in_check_mask = mask;
 }