Changeset 195b7b3 in mainline for uspace/srv/hid/display/output.c
- Timestamp:
- 2020-06-22T15:25:48Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c8e1f93
- Parents:
- 5271e4c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/output.c
r5271e4c r195b7b3 38 38 #include <fibril_synch.h> 39 39 #include <io/kbd_event.h> 40 #include <io/log.h> 40 41 #include <io/pos_event.h> 41 42 #include <loc.h> 42 #include <stdio.h>43 43 #include <stdlib.h> 44 44 #include "ddev.h" … … 63 63 IPC_FLAG_BLOCKING); 64 64 if (rc != EOK) { 65 printf("Error looking up category 'display-device'.\n"); 65 log_msg(LOG_DEFAULT, LVL_ERROR, 66 "Error looking up category 'display-device'.\n"); 66 67 return EIO; 67 68 } … … 72 73 rc = loc_category_get_svcs(ddev_cid, &svcs, &count); 73 74 if (rc != EOK) { 74 printf("Error getting list of display devices.\n"); 75 log_msg(LOG_DEFAULT, LVL_ERROR, 76 "Error getting list of display devices.\n"); 75 77 return EIO; 76 78 } … … 90 92 rc = ds_ddev_open(output->def_display, svcs[i], &nddev); 91 93 if (rc != EOK) { 92 printf("Error adding display device.\n"); 94 log_msg(LOG_DEFAULT, LVL_ERROR, 95 "Error adding display device.\n"); 93 96 continue; 94 97 } … … 96 99 list_append(&nddev->loutdevs, &output->ddevs); 97 100 98 printf("Added display device '%lu'\n", 101 log_msg(LOG_DEFAULT, LVL_NOTE, 102 "Added display device '%lu'\n", 99 103 (unsigned long) svcs[i]); 100 104 } … … 114 118 ds_output_t *output = (ds_output_t *) arg; 115 119 116 printf("ds_ddev_change_cb\n");117 120 fibril_mutex_lock(&output->lock); 118 121 (void) ds_output_check_new_devs(output); … … 151 154 rc = loc_register_cat_change_cb(ds_ddev_change_cb, output); 152 155 if (rc != EOK) { 153 printf("Failed registering callback for device discovery.\n"); 156 log_msg(LOG_DEFAULT, LVL_ERROR, 157 "Failed registering callback for device discovery.\n"); 154 158 return rc; 155 159 }
Note:
See TracChangeset
for help on using the changeset viewer.