Changeset e535eeb in mainline for uspace/app/tasks/tasks.c


Ignore:
Timestamp:
2010-04-18T12:28:19Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dec16a2
Parents:
e1b6742
Message:

rename order() to order_suffix(), make it a generic libc string function in user space

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tasks/tasks.c

    re1b6742 re535eeb  
    4545#include <inttypes.h>
    4646#include <bool.h>
     47#include <str.h>
    4748#include <arg_parse.h>
    48 #include "func.h"
    4949
    5050#define NAME  "tasks"
     
    7676                        char vmsuffix, usuffix, ksuffix;
    7777                       
    78                         order(stats_task->virtmem, &virtmem, &vmsuffix);
    79                         order(stats_task->ucycles, &ucycles, &usuffix);
    80                         order(stats_task->kcycles, &kcycles, &ksuffix);
     78                        order_suffix(stats_task->virtmem, &virtmem, &vmsuffix);
     79                        order_suffix(stats_task->ucycles, &ucycles, &usuffix);
     80                        order_suffix(stats_task->kcycles, &kcycles, &ksuffix);
    8181                       
    8282                        printf("%8" PRIu64 "%8u %8" PRIu64"%c %12"
     
    113113                                char usuffix, ksuffix;
    114114                               
    115                                 order(stats_thread->ucycles, &ucycles, &usuffix);
    116                                 order(stats_thread->kcycles, &kcycles, &ksuffix);
     115                                order_suffix(stats_thread->ucycles, &ucycles, &usuffix);
     116                                order_suffix(stats_thread->kcycles, &kcycles, &ksuffix);
    117117                               
    118118                                if (stats_thread->on_cpu) {
Note: See TracChangeset for help on using the changeset viewer.