Changeset a1a101d in mainline for uspace/srv/net/inetsrv/inetsrv.c
- Timestamp:
- 2012-08-17T16:58:51Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bc0ccab
- Parents:
- 920d0fc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/inetsrv.c
r920d0fc ra1a101d 66 66 static int inet_init(void) 67 67 { 68 log_msg(L VL_DEBUG, "inet_init()");68 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_init()"); 69 69 70 70 async_set_client_connection(inet_client_conn); … … 72 72 int rc = loc_server_register(NAME); 73 73 if (rc != EOK) { 74 log_msg(L VL_ERROR, "Failed registering server (%d).", rc);74 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server (%d).", rc); 75 75 return EEXIST; 76 76 } … … 80 80 INET_PORT_DEFAULT); 81 81 if (rc != EOK) { 82 log_msg(L VL_ERROR, "Failed registering service (%d).", rc);82 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service (%d).", rc); 83 83 return EEXIST; 84 84 } … … 87 87 INET_PORT_CFG); 88 88 if (rc != EOK) { 89 log_msg(L VL_ERROR, "Failed registering service (%d).", rc);89 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service (%d).", rc); 90 90 return EEXIST; 91 91 } … … 94 94 INET_PORT_PING); 95 95 if (rc != EOK) { 96 log_msg(L VL_ERROR, "Failed registering service (%d).", rc);96 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service (%d).", rc); 97 97 return EEXIST; 98 98 } … … 108 108 ipc_call_t *call) 109 109 { 110 log_msg(L VL_DEBUG, "inet_callback_create_srv()");110 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_callback_create_srv()"); 111 111 112 112 async_sess_t *sess = async_callback_receive(EXCHANGE_SERIALIZE); … … 143 143 144 144 if (dir->aobj == NULL) { 145 log_msg(L VL_DEBUG, "inet_send: No route to destination.");145 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_send: No route to destination."); 146 146 return ENOENT; 147 147 } … … 194 194 int rc; 195 195 196 log_msg(L VL_DEBUG, "inet_get_srcaddr_srv()");196 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_get_srcaddr_srv()"); 197 197 198 198 remote.ipv4 = IPC_GET_ARG1(*call); … … 212 212 int rc; 213 213 214 log_msg(L VL_DEBUG, "inet_send_srv()");214 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_send_srv()"); 215 215 216 216 dgram.src.ipv4 = IPC_GET_ARG1(*call); … … 238 238 239 239 proto = IPC_GET_ARG1(*call); 240 log_msg(L VL_DEBUG, "inet_set_proto_srv(%lu)", (unsigned long) proto);240 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_set_proto_srv(%lu)", (unsigned long) proto); 241 241 242 242 if (proto > UINT8_MAX) { … … 272 272 inet_client_t client; 273 273 274 log_msg(L VL_DEBUG, "inet_default_conn()");274 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_default_conn()"); 275 275 276 276 /* Accept the connection */ … … 378 378 inet_client_t *client; 379 379 380 log_msg(L VL_DEBUG, "inet_recv_dgram_local()");380 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_recv_dgram_local()"); 381 381 382 382 /* ICMP messages are handled internally */ … … 386 386 client = inet_client_find(proto); 387 387 if (client == NULL) { 388 log_msg(L VL_DEBUG, "No client found for protocol 0x%" PRIx8,388 log_msg(LOG_DEFAULT, LVL_DEBUG, "No client found for protocol 0x%" PRIx8, 389 389 proto); 390 390 return ENOENT;
Note:
See TracChangeset
for help on using the changeset viewer.