From: Greg King Date: Sun, 9 Aug 2015 02:04:38 +0000 (-0400) Subject: Improved the format of the global symbols' lists of flags, in cc65's debugging output. X-Git-Tag: V2.16~239^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d36f31dcff21f84c5f1f65ae8b0e07e989a6cee3;p=cc65 Improved the format of the global symbols' lists of flags, in cc65's debugging output. --- diff --git a/src/cc65/symentry.c b/src/cc65/symentry.c index aa5949f97..980ee27f2 100644 --- a/src/cc65/symentry.c +++ b/src/cc65/symentry.c @@ -126,19 +126,19 @@ void DumpSymEntry (FILE* F, const SymEntry* E) /* Print the assembler name if we have one */ if (E->AsmName) { fprintf (F, " AsmName: %s\n", E->AsmName); - } + } /* Print the flags */ SymFlags = E->Flags; - fprintf (F, " Flags: "); + fprintf (F, " Flags:"); for (I = 0; I < sizeof (Flags) / sizeof (Flags[0]) && SymFlags != 0; ++I) { if ((SymFlags & Flags[I].Val) == Flags[I].Val) { SymFlags &= ~Flags[I].Val; - fprintf (F, "%s ", Flags[I].Name); + fprintf (F, " %s", Flags[I].Name); } } if (SymFlags != 0) { - fprintf (F, "%04X", SymFlags); + fprintf (F, " 0x%05X", SymFlags); } fprintf (F, "\n");