From: Alan Modra Date: Fri, 9 Feb 2001 16:33:21 +0000 (+0000) Subject: Don't #ifdef inside printf in case printf is a macro. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7bb10502ed7272132d70a6c6d5450bdc94345566;p=binutils-gdb.git Don't #ifdef inside printf in case printf is a macro. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 4cbb07d085f..b7b671f6d08 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2001-02-10 Alan Modra + + * nm.c (print_symbol_info_bsd): Don't #ifdef inside printf in case + printf is a macro. + 2001-02-08 Hans-Peter Nilsson * acinclude.m4 (AM_PROG_LEX): Override installed definition. diff --git a/binutils/nm.c b/binutils/nm.c index f1219eb7e6d..3695d1e760f 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -1,5 +1,5 @@ /* nm.c -- Describe symbol table of a rel file. - Copyright 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000 + Copyright 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -1473,13 +1473,11 @@ print_symbol_info_bsd (info, abfd) { if (bfd_is_undefined_symclass (info->type)) { - printf ("%*s", #ifdef BFD64 - 16, + printf ("%*s", 16, ""); #else - 8, + printf ("%*s", 8, ""); #endif - ""); } else print_value (info->value);