Changeset da581872 in mainline
- Timestamp:
- 2009-03-03T19:50:00Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c22e964
- Parents:
- 02fd705
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
r02fd705 rda581872 81 81 #endif 82 82 83 #define BOOT_PREFIX "boot:"84 #define BOOT_PREFIX_LEN 583 #define INIT_PREFIX "init:" 84 #define INIT_PREFIX_LEN 5 85 85 86 86 /** Kernel initialization thread. … … 179 179 180 180 /* 181 * Construct task name from the ' boot:' prefix and the181 * Construct task name from the 'init:' prefix and the 182 182 * name stored in the init structure (if any). 183 183 */ … … 190 190 name = "<unknown>"; 191 191 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); 196 196 197 197 int rc = program_create_from_image((void *) init.tasks[i].addr,
Note:
See TracChangeset
for help on using the changeset viewer.