Changeset 47b27b40 in mainline for uspace/srv/hid/rfb/main.c


Ignore:
Timestamp:
2013-09-12T14:14:13Z (11 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
870f78c
Parents:
38c822e
Message:

rfb: Use logging API instead of ad-hoc printf statements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/rfb/main.c

    r38c822e r47b27b40  
    3434#include <abi/ipc/methods.h>
    3535#include <inttypes.h>
     36#include <io/log.h>
    3637
    3738#include <abi/fb/visuals.h>
     
    158159int main(int argc, char **argv)
    159160{
     161        log_init(NAME);
     162
    160163        if (argc <= 3) {
    161164                syntax_print();
     
    258261       
    259262        rc = rfb_listen(&rfb, port);
    260         if (rc != EOK)
     263        if (rc != EOK) {
     264                fprintf(stderr, NAME ": Unable to listen at rfb port\n");
    261265                return 2;
     266        }
    262267       
    263268        fid_t fib = fibril_create(socket_fibril, NULL);
Note: See TracChangeset for help on using the changeset viewer.