Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset da581872 in mainline


Ignore:
Timestamp:
2009-03-03T19:50:00Z (13 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master
Children:
c22e964
Parents:
02fd705
Message:

'init:' instead of 'boot:'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/main/kinit.c

    r02fd705 rda581872  
    8181#endif
    8282
    83 #define BOOT_PREFIX      "boot:"
    84 #define BOOT_PREFIX_LEN  5
     83#define INIT_PREFIX      "init:"
     84#define INIT_PREFIX_LEN  5
    8585
    8686/** Kernel initialization thread.
     
    179179               
    180180                /*
    181                  * Construct task name from the 'boot:' prefix and the
     181                 * Construct task name from the 'init:' prefix and the
    182182                 * name stored in the init structure (if any).
    183183                 */
     
    190190                        name = "<unknown>";
    191191               
    192                 ASSERT(TASK_NAME_BUFLEN >= BOOT_PREFIX_LEN);
    193                 strncpy(namebuf, BOOT_PREFIX, TASK_NAME_BUFLEN);
    194                 strncpy(namebuf + BOOT_PREFIX_LEN, name,
    195                     TASK_NAME_BUFLEN - BOOT_PREFIX_LEN);
     192                ASSERT(TASK_NAME_BUFLEN >= INIT_PREFIX_LEN);
     193                strncpy(namebuf, INIT_PREFIX, TASK_NAME_BUFLEN);
     194                strncpy(namebuf + INIT_PREFIX_LEN, name,
     195                    TASK_NAME_BUFLEN - INIT_PREFIX_LEN);
    196196               
    197197                int rc = program_create_from_image((void *) init.tasks[i].addr,
Note: See TracChangeset for help on using the changeset viewer.