Changeset 330a59f in mainline for uspace/lib/c/generic/io/logctl.c


Ignore:
Timestamp:
2012-08-16T22:45:22Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f72ae3b
Parents:
9ba10f0
Message:

Remove no longer needed function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/logctl.c

    r9ba10f0 r330a59f  
    3939#include <ns.h>
    4040#include <str.h>
    41 
    42 #define SYSINFO_LOGGGER_BOOT_ARGUMENT "init_args.logger"
    4341
    4442/** IPC session with the logger service. */
     
    130128}
    131129
    132 
    133 int logctl_get_boot_level(log_level_t *level)
    134 {
    135         size_t argument_size;
    136         void *argument = sysinfo_get_data(SYSINFO_LOGGGER_BOOT_ARGUMENT, &argument_size);
    137         if (argument == NULL)
    138                 return EINVAL;
    139 
    140         char level_str[20];
    141         str_cpy(level_str, 20, (const char *) argument);
    142 
    143         log_level_t boot_level;
    144         int rc = log_level_from_str(level_str, &boot_level);
    145         if (rc != EOK)
    146                 return rc;
    147 
    148         if (level != NULL)
    149                 *level = (log_level_t) boot_level;
    150 
    151         return EOK;
    152 }
    153 
    154130/** @}
    155131 */
Note: See TracChangeset for help on using the changeset viewer.