Changeset 03e0beaf in mainline for uspace/srv/hid/input/input.c


Ignore:
Timestamp:
2016-12-27T12:52:04Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ce5a0f1
Parents:
1a2befb
Message:

Switch to using config_get_value()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/input.c

    r1a2befb r03e0beaf  
    4343#include <ipc/input.h>
    4444#include <sysinfo.h>
     45#include <config.h>
    4546#include <stdio.h>
    4647#include <unistd.h>
     
    903904        }
    904905
    905         char *boot_args;
    906         size_t size;
    907 
    908         boot_args = sysinfo_get_data("boot_args", &size);
    909         if (boot_args && size) {
    910                 char *args = boot_args;
    911                 char *arg;
    912 #define ARG_CONSOLE     "console="
    913                 while ((arg = str_tok(args, " ", &args)) != NULL) {
    914                         if (!str_lcmp(arg, ARG_CONSOLE,
    915                             str_length(ARG_CONSOLE))) {
    916                                 serial_console = arg + str_length(ARG_CONSOLE);
    917                                 break;
    918                         }
    919                 }
    920         }
     906        serial_console = config_get_value("console");
    921907       
    922908        /* Add legacy keyboard devices. */
Note: See TracChangeset for help on using the changeset viewer.