diff options
Diffstat (limited to 'gcc/config/avr/avr-log.c')
-rw-r--r-- | gcc/config/avr/avr-log.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/avr/avr-log.c b/gcc/config/avr/avr-log.c index e3a821a..d1cf3dd 100644 --- a/gcc/config/avr/avr-log.c +++ b/gcc/config/avr/avr-log.c @@ -86,7 +86,7 @@ avr_vdump (FILE *stream, const char *caller, ...) { va_list ap; - if (NULL == stream && dump_file) + if (stream == NULL && dump_file) stream = dump_file; va_start (ap, caller); @@ -294,15 +294,15 @@ avr_log_set_avr_log (void) str[0] = ','; strcat (stpcpy (str+1, avr_log_details), ","); - all |= NULL != strstr (str, ",all,"); - info = NULL != strstr (str, ",?,"); + all |= strstr (str, ",all,") != NULL; + info = strstr (str, ",?,") != NULL; if (info) fprintf (stderr, "\n-mlog="); #define SET_DUMP_DETAIL(S) \ do { \ - avr_log.S = (all || NULL != strstr (str, "," #S ",")); \ + avr_log.S = (all || strstr (str, "," #S ",") != NULL); \ if (info) \ fprintf (stderr, #S ","); \ } while (0) |