Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 330a59f in mainline


Ignore:
Timestamp:
2012-08-16T22:45:22Z (9 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master
Children:
f72ae3b
Parents:
9ba10f0
Message:

Remove no longer needed function

Location:
uspace/lib/c
Files:
2 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 */
  • uspace/lib/c/include/io/logctl.h

    r9ba10f0 r330a59f  
    3939extern int logctl_set_top_log_level(const char *, log_level_t);
    4040extern int logctl_set_log_level(const char *, const char *, log_level_t);
    41 extern int logctl_get_boot_level(log_level_t *);
    4241
    4342#endif
Note: See TracChangeset for help on using the changeset viewer.