Changes in uspace/srv/hw/irc/obio/obio.c [57d129e:15f3c3f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/irc/obio/obio.c
r57d129e r15f3c3f 44 44 #include <ipc/services.h> 45 45 #include <ipc/irc.h> 46 #include < ipc/ns.h>46 #include <ns.h> 47 47 #include <sysinfo.h> 48 48 #include <as.h> … … 55 55 #include <async.h> 56 56 #include <stdio.h> 57 #include <ipc/ devmap.h>57 #include <ipc/loc.h> 58 58 59 59 #define NAME "obio" … … 76 76 * @param iid Hash of the request that opened the connection. 77 77 * @param icall Call data of the request that opened the connection. 78 * @param arg Local argument. 78 79 */ 79 static void obio_connection(ipc_callid_t iid, ipc_call_t *icall )80 static void obio_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg) 80 81 { 81 82 ipc_callid_t callid; … … 118 119 119 120 if (sysinfo_get_value("obio.base.physical", &paddr) != EOK) { 120 printf( NAME ": no OBIO registers found\n");121 printf("%s: No OBIO registers found\n", NAME); 121 122 return false; 122 123 } … … 130 131 131 132 if (retval < 0) { 132 printf( NAME ": Error mapping OBIO registers\n");133 printf("%s: Error mapping OBIO registers\n", NAME); 133 134 return false; 134 135 } 135 136 136 printf( NAME ": OBIO registers with base at %p\n", base_phys);137 printf("%s: OBIO registers with base at %p\n", NAME, base_phys); 137 138 138 139 async_set_client_connection(obio_connection); … … 144 145 int main(int argc, char **argv) 145 146 { 146 printf( NAME ": HelenOS OBIO driver\n");147 printf("%s: HelenOS OBIO driver\n", NAME); 147 148 148 149 if (!obio_init()) 149 150 return -1; 150 151 151 printf(NAME ": Accepting connections\n"); 152 printf("%s: Accepting connections\n", NAME); 153 task_retval(0); 152 154 async_manager(); 153 155 154 156 /* Never reached */ 155 157 return 0; … … 158 160 /** 159 161 * @} 160 */ 162 */
Note:
See TracChangeset
for help on using the changeset viewer.