# HG changeset patch # User Matti Hamalainen # Date 1645972580 -7200 # Node ID 5c714feeb3a7ef589f0bda2c049d228f9c6b03af # Parent fdea5e3d727f919ad41440b66b10887270d25859 Cosmetics. diff -r fdea5e3d727f -r 5c714feeb3a7 tools/objlink.c --- a/tools/objlink.c Sat Feb 26 00:58:59 2022 +0200 +++ b/tools/objlink.c Sun Feb 27 16:36:20 2022 +0200 @@ -30,8 +30,8 @@ { char *name; // Description of memory model char *desc; - int size; // Total addressable memory size - int nmemBlocks; // Defined memory areas + int size; // Total addressable memory size + int nmemBlocks; // Defined memory areas DMMemBlock memBlocks[SET_MAX_MEMBLOCKS]; } DMMemModel; @@ -57,8 +57,8 @@ enum { PLACE_STATIC = 1, // Already known - PLACE_ARGUMENT, // Commandline argument - PLACE_FILE, // From file + PLACE_ARGUMENT, // Commandline argument + PLACE_FILE, // From file }; enum @@ -190,7 +190,7 @@ dmPrintBanner(stdout, dmProgName, "[options]"); dmArgsPrintHelp(stdout, optList, optListN, 0, 80 - 2); - printf( + fprintf(stdout, "\n" "Each numeric argument can be prefixed with $ or 0x for hexadecimal values.\n" "NOTICE! -p filename: will ignore load address and use instead!\n" @@ -200,7 +200,8 @@ for (int i = 0; i < nmemoryModels; i++) { const DMMemModel *m = &memoryModels[i]; - printf(" %d = %-40s [%s] (%d kB)\n", + fprintf(stdout, + " %d = %-40s [%s] (%d kB)\n", i, m->name, m->desc, m->size / 1024); } } @@ -736,13 +737,15 @@ */ void memPrintLine(FILE *f) { - fprintf(f, " +------------------------------------------+\n"); + fprintf(f, + " +------------------------------------------+\n"); } void memPrintEmpty(FILE *f, int n) { for (int i = 0; i < n; i++) - fprintf(f, " | |\n"); + fprintf(f, + " | |\n"); } void dmDescribeMemory(FILE *f)