Changeset 1abcf1d in mainline for uspace/dist/src/c/demos/top/screen.c


Ignore:
Timestamp:
2018-04-10T19:43:21Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a69d42e
Parents:
9fa14d8d
Message:

puts() should append newline.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/dist/src/c/demos/top/screen.c

    r9fa14d8d r1abcf1d  
    120120        sysarg_t i;
    121121        for (i = c + 1; i < cols; i++)
    122                 puts(" ");
     122                fputs(" ", stdout);
    123123
    124124        if (r + 1 < rows)
    125                 puts("\n");
     125                puts("");
    126126}
    127127
     
    187187        size_t i;
    188188        for (i = 0; i < data->load_count; i++) {
    189                 puts(" ");
     189                fputs(" ", stdout);
    190190                stats_print_load_fragment(data->load[i], 2);
    191191        }
     
    259259                            data->cpus[i].id, data->cpus[i].frequency_mhz,
    260260                            busy, busy_suffix, idle, idle_suffix);
    261                         puts(", idle: ");
     261                        fputs(", idle: ", stdout);
    262262                        print_percent(data->cpus_perc[i].idle, 2);
    263                         puts(", busy: ");
     263                        fputs(", busy: ", stdout);
    264264                        print_percent(data->cpus_perc[i].busy, 2);
    265265                } else
     
    361361                int width = table->columns[i].width;
    362362                if (i != 0) {
    363                         puts(" ");
     363                        fputs(" ", stdout);
    364364                }
    365365                if (width == 0) {
     
    395395
    396396                if (column_index != 0) {
    397                         puts(" ");
     397                        fputs(" ", stdout);
    398398                }
    399399
Note: See TracChangeset for help on using the changeset viewer.