altos: shrink ao_companion_status by merging printf calls
authorKeith Packard <keithp@keithp.com>
Tue, 4 Dec 2012 17:43:56 +0000 (09:43 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 4 Dec 2012 17:43:56 +0000 (09:43 -0800)
Multiple printf calls are longer than one big one, so merge these
together to save some code space

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_companion.c

index c749adea9de2f2da295bf2aa64f28c9642ed1103..0ebe8429124966790244e0a2fa5083782a0525a6 100644 (file)
@@ -118,10 +118,13 @@ ao_companion_status(void) __reentrant
        printf("Companion running: %d\n", ao_companion_running);
        if (!ao_companion_running)
                return;
-       printf("device: %d\n", ao_companion_setup.board_id);
-       printf("update period: %d\n", ao_companion_setup.update_period);
-       printf("channels: %d\n", ao_companion_setup.channels);
-       printf("data:");
+       printf("device: %d\n"
+              "update period: %d\n"
+              "channels: %d\n"
+              "data:",
+              ao_companion_setup.board_id,
+              ao_companion_setup.update_period,
+              ao_companion_setup.channels);
        for(i = 0; i < ao_companion_setup.channels; i++)
                printf(" %5u", ao_companion_data[i]);
        printf("\n");