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

Changeset f50a756 in mainline


Ignore:
Timestamp:
2012-08-16T22:21:35Z (8 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
master
Children:
9ba10f0
Parents:
2bf781a
Message:

Function renaming

Location:
uspace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/logset/main.c

    r2bf781a rf50a756  
    7171        } else if (argc == 3) {
    7272                log_level_t new_level = parse_log_level_or_die(argv[2]);
    73                 const char *namespace = argv[1];
    74                 int rc = logctl_set_namespace_level(namespace, new_level);
     73                const char *toplog = argv[1];
     74                int rc = logctl_set_top_log_level(toplog, new_level);
    7575
    7676                if (rc != EOK) {
     
    8181        } else if (argc == 4) {
    8282                log_level_t new_level = parse_log_level_or_die(argv[3]);
    83                 const char *namespace = argv[1];
    84                 const char *context = argv[2];
    85                 int rc = logctl_set_context_level(namespace, context, new_level);
     83                const char *toplog = argv[1];
     84                const char *log = argv[2];
     85                int rc = logctl_set_log_level(toplog, log, new_level);
    8686                if (rc != EOK) {
    8787                        fprintf(stderr, "Failed to change logging level: %s.\n",
  • uspace/lib/c/generic/io/logctl.c

    r2bf781a rf50a756  
    8383}
    8484
    85 int logctl_set_namespace_level(const char *namespace, log_level_t new_level)
     85int logctl_set_top_log_level(const char *namespace, log_level_t new_level)
    8686{
    8787        async_exch_t *exchange = NULL;
     
    105105}
    106106
    107 int logctl_set_context_level(const char *namespace, const char *context, log_level_t new_level)
     107int logctl_set_log_level(const char *namespace, const char *context, log_level_t new_level)
    108108{
    109109        async_exch_t *exchange = NULL;
  • uspace/lib/c/include/io/logctl.h

    r2bf781a rf50a756  
    3737
    3838extern int logctl_set_default_level(log_level_t);
    39 extern int logctl_set_namespace_level(const char *, log_level_t);
    40 extern int logctl_set_context_level(const char *, const char *, log_level_t);
     39extern int logctl_set_top_log_level(const char *, log_level_t);
     40extern int logctl_set_log_level(const char *, const char *, log_level_t);
    4141extern int logctl_get_boot_level(log_level_t *);
    4242
Note: See TracChangeset for help on using the changeset viewer.