changeset 2553:5c714feeb3a7

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 27 Feb 2022 16:36:20 +0200
parents fdea5e3d727f
children aabfa00eafd9
files tools/objlink.c
diffstat 1 files changed, 11 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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:<addr> will ignore load address and use <addr> 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)