Home
last modified time | relevance | path

Searched refs:line (Results 1 – 8 of 8) sorted by relevance

/bootable/recovery/tools/ota/
Dadd-property-tag.c31 int should_tag(const char *line, const char *propname) { in should_tag() argument
32 const char *prop = strstr(line, propname); in should_tag()
37 for (ptr = line; ptr < prop && isspace(*ptr); ++ptr) ; in should_tag()
45 int remove_tag(char *line, const char *tag) { in remove_tag() argument
46 char *pos = strstr(line, tag); in remove_tag()
56 void write_tagged(FILE *out, const char *line, const char *tag, int number) { in write_tagged() argument
57 const char *end = line + strlen(line); in write_tagged()
58 while (end > line && isspace(end[-1])) --end; in write_tagged()
60 fprintf(out, "%.*s%s%d%s", (int)(end - line), line, tag, number, end); in write_tagged()
62 fprintf(out, "%.*s%s%s", (int)(end - line), line, tag, end); in write_tagged()
[all …]
Dcheck-lost+found.c127 char *saveptr, *line; in main() local
129 for (line = strtok_r(dmesg, "\n", &saveptr); line != NULL; in main()
130 line = strtok_r(NULL, "\n", &saveptr)) { in main()
131 if (strstr(line, "yaffs: dev is")) in_yaffs = 1; in main()
134 strstr(line, "yaffs") || in main()
135 strstr(line, "mtd") || in main()
136 strstr(line, "msm_nand")) { in main()
137 fprintf(out, "%s\n", line); in main()
140 if (strstr(line, "yaffs_read_super: isCheckpointed")) in_yaffs = 0; in main()
/bootable/recovery/updater/
Dupdater.c148 char* line = strtok(state.errmsg, "\n"); in main() local
149 while (line) { in main()
150 fprintf(cmd_pipe, "ui_print %s\n", line); in main()
151 line = strtok(NULL, "\n"); in main()
Dblockimg.c1524 char* line = NULL; in PerformBlockImageUpdate() local
1640 line = strtok_r(transfer_list, "\n", &linesave); in PerformBlockImageUpdate()
1641 params.version = strtol(line, NULL, 0); in PerformBlockImageUpdate()
1644 fprintf(stderr, "unexpected transfer list version [%s]\n", line); in PerformBlockImageUpdate()
1651 line = strtok_r(NULL, "\n", &linesave); in PerformBlockImageUpdate()
1652 total_blocks = strtol(line, NULL, 0); in PerformBlockImageUpdate()
1655 ErrorAbort(state, "unexpected block count [%s]\n", line); in PerformBlockImageUpdate()
1664 line = strtok_r(NULL, "\n", &linesave); in PerformBlockImageUpdate()
1665 fprintf(stderr, "maximum stash entries %s\n", line); in PerformBlockImageUpdate()
1668 line = strtok_r(NULL, "\n", &linesave); in PerformBlockImageUpdate()
[all …]
Dinstall.c57 char* line = strtok(buffer, "\n"); in uiPrint() local
59 while (line) { in uiPrint()
60 fprintf(ui->cmd_pipe, "ui_print %s\n", line); in uiPrint()
61 line = strtok(NULL, "\n"); in uiPrint()
987 char* line = strtok(buffer, "\n"); in FileGetPropFn() local
990 while (*line && isspace(*line)) ++line; in FileGetPropFn()
993 if (*line == '\0' || *line == '#') continue; in FileGetPropFn()
995 char* equal = strchr(line, '='); in FileGetPropFn()
1002 while (key_end > line && isspace(*key_end)) --key_end; in FileGetPropFn()
1006 if (strcmp(key, line) != 0) continue; in FileGetPropFn()
[all …]
/bootable/recovery/
Dscreen_ui.h132 void DrawTextLine(int* y, const char* line, bool bold);
Dscreen_ui.cpp214 void ScreenRecoveryUI::DrawTextLine(int* y, const char* line, bool bold) { in DrawTextLine() argument
215 gr_text(4, *y, line, bold); in DrawTextLine()
/bootable/recovery/edify/
DREADME37 - Comments start with "#" and run to the end of the line.