Changes in uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c [228e490:991f645] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
r228e490 r991f645 48 48 #include <sysinfo.h> 49 49 #include <errno.h> 50 #include <inttypes.h>51 50 52 51 #include "s3c24xx_uart.h" … … 96 95 if (rc != EOK) { 97 96 devmap_hangup_phone(DEVMAP_DRIVER); 98 printf(NAME ": Unable to register device %s.\n", 99 NAMESPACE "/" NAME); 97 printf(NAME ": Unable to register device %s.\n"); 100 98 return -1; 101 99 } … … 116 114 ipc_callid_t callid; 117 115 ipc_call_t call; 118 sysarg_t method;116 ipcarg_t method; 119 117 int retval; 120 118 … … 124 122 while (1) { 125 123 callid = async_get_call(&call); 126 method = IPC_GET_ IMETHOD(call);124 method = IPC_GET_METHOD(call); 127 125 switch (method) { 128 126 case IPC_M_PHONE_HUNGUP: … … 136 134 break; 137 135 case CHAR_WRITE_BYTE: 138 printf(NAME ": write % " PRIun "to device\n",136 printf(NAME ": write %d to device\n", 139 137 IPC_GET_ARG1(call)); 140 138 s3c24xx_uart_sendb(uart, (uint8_t) IPC_GET_ARG1(call)); … … 187 185 uart->client_phone = -1; 188 186 189 printf(NAME ": device at physical address %p, inr %" PRIun ".\n",190 (void *)uart->paddr, inr);187 printf(NAME ": device at physical address 0x%x, inr %d.\n", 188 uart->paddr, inr); 191 189 192 190 async_set_interrupt_received(s3c24xx_uart_irq_handler);
Note:
See TracChangeset
for help on using the changeset viewer.