Changeset 24ab58b3 in mainline for uspace/srv/net/il/arp/arp.c


Ignore:
Timestamp:
2010-04-06T11:41:48Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
14f1db0
Parents:
4dd8529
Message:

more compact network startup messages (usually one line instead of multiple lines)
pass module name as an argument to nil_message() and friends
deeper cstyle changes (replace forward prototypes with proper extern declarations and static functions, change doxygen comments, stick more closely to the 80-column rule, no argument names in header files, spacing, comments, etc.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/il/arp/arp.c

    r4dd8529 r24ab58b3  
    6868/** ARP module name.
    6969 */
    70 #define NAME    "ARP protocol"
     70#define NAME  "arp"
    7171
    7272/** ARP global data.
     
    338338                        return ERROR_CODE;
    339339                }
    340                 printf("New device registered:\n\tid\t= %d\n\ttype\t= 0x%x\n\tservice\t= %d\n\tproto\t= %d\n", device->device_id, device->hardware, device->service, protocol);
     340                printf("%s: Device registered (id: %d, type: 0x%x, service: %d, proto: %d)\n",
     341                    NAME, device->device_id, device->hardware, device->service, protocol);
    341342        }
    342343        fibril_rwlock_write_unlock(&arp_globals.lock);
     
    673674        ERROR_DECLARE;
    674675       
    675         /* Print the module label */
    676         printf("Task %d - %s\n", task_get_id(), NAME);
     676        /* Start the module */
     677        if (ERROR_OCCURRED(il_module_start(il_client_connection)))
     678                return ERROR_CODE;
    677679       
    678         /* Start the module */
    679         if (ERROR_OCCURRED(il_module_start(il_client_connection))) {
    680                 printf(" - ERROR %i\n", ERROR_CODE);
    681                 return ERROR_CODE;
    682         }
    683        
    684680        return EOK;
    685681}
Note: See TracChangeset for help on using the changeset viewer.