Changeset 195b7b3 in mainline for uspace/srv/hid/display/input.c


Ignore:
Timestamp:
2020-06-22T15:25:48Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c8e1f93
Parents:
5271e4c
Message:

Clean up debug messages and logging

File:
1 edited

Legend:

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

    r5271e4c r195b7b3  
    3535#include <errno.h>
    3636#include <io/input.h>
     37#include <io/log.h>
    3738#include <loc.h>
    38 #include <stdio.h>
    3939#include <str_error.h>
    4040#include "display.h"
     
    153153        errno_t rc = loc_service_get_id(svc, &dsid, 0);
    154154        if (rc != EOK) {
    155                 printf("%s: Input service %s not found\n", NAME, svc);
     155                log_msg(LOG_DEFAULT, LVL_ERROR, "Input service %s not found\n",
     156                    svc);
    156157                return rc;
    157158        }
     
    159160        sess = loc_service_connect(dsid, INTERFACE_INPUT, 0);
    160161        if (sess == NULL) {
    161                 printf("%s: Unable to connect to input service %s\n", NAME,
    162                     svc);
     162                log_msg(LOG_DEFAULT, LVL_ERROR,
     163                    "Unable to connect to input service %s\n", svc);
    163164                return EIO;
    164165        }
     
    168169        if (rc != EOK) {
    169170                async_hangup(sess);
    170                 printf("%s: Unable to communicate with service %s (%s)\n",
    171                     NAME, svc, str_error(rc));
     171                log_msg(LOG_DEFAULT, LVL_ERROR,
     172                    "Unable to communicate with service %s (%s)\n",
     173                    svc, str_error(rc));
    172174                return rc;
    173175        }
Note: See TracChangeset for help on using the changeset viewer.