Changes in uspace/srv/hw/irc/fhc/fhc.c [57d129e:9934f7d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/irc/fhc/fhc.c
r57d129e r9934f7d 38 38 #include <ipc/services.h> 39 39 #include <ipc/irc.h> 40 #include < ipc/ns.h>40 #include <ns.h> 41 41 #include <sysinfo.h> 42 42 #include <as.h> … … 53 53 #define NAME "fhc" 54 54 55 #define FHC_UART_INR 0x39 55 #define FHC_UART_INR 0x39 56 56 57 57 #define FHC_UART_IMAP 0x0 … … 66 66 * @param iid Hash of the request that opened the connection. 67 67 * @param icall Call data of the request that opened the connection. 68 * @param arg Local argument. 68 69 */ 69 static void fhc_connection(ipc_callid_t iid, ipc_call_t *icall )70 static void fhc_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg) 70 71 { 71 72 ipc_callid_t callid; … … 128 129 129 130 if (retval < 0) { 130 printf( NAME ": Error mapping FHC UART registers\n");131 printf("%s: Error mapping FHC UART registers\n", NAME); 131 132 return false; 132 133 } 133 134 134 printf( NAME ": FHC UART registers at %p, %zu bytes\n", fhc_uart_phys,135 fhc_uart_ size);135 printf("%s: FHC UART registers at %p, %zu bytes\n", NAME, 136 fhc_uart_phys, fhc_uart_size); 136 137 137 138 async_set_client_connection(fhc_connection); … … 143 144 int main(int argc, char **argv) 144 145 { 145 printf( NAME ": HelenOS FHC bus controller driver\n");146 printf("%s: HelenOS FHC bus controller driver\n", NAME); 146 147 147 148 if (!fhc_init()) 148 149 return -1; 149 150 150 printf(NAME ": Accepting connections\n"); 151 printf("%s: Accepting connections\n", NAME); 152 task_retval(0); 151 153 async_manager(); 152 154 153 155 /* Never reached */ 154 156 return 0; … … 157 159 /** 158 160 * @} 159 */ 161 */
Note:
See TracChangeset
for help on using the changeset viewer.