idk2
This commit is contained in:
@@ -219,6 +219,7 @@ static int fdt_dump_node_data(char * fdt, char * strings, const char *outname, c
|
||||
if (readed <= 0)
|
||||
return -1;
|
||||
|
||||
#if 0
|
||||
if (fdt_node_get_prop(filename, fdt, strings, offset, "commit", &data_offset, &data_len))
|
||||
return -1;
|
||||
|
||||
@@ -229,7 +230,8 @@ static int fdt_dump_node_data(char * fdt, char * strings, const char *outname, c
|
||||
char commit[42] = {0};
|
||||
strncpy(commit, buf, sizeof(commit));
|
||||
printf("Commit(len: %d): '%s'\n", data_len, commit);
|
||||
#if 0
|
||||
#endif
|
||||
#if 1
|
||||
int fd = 0; /* assume stdin */
|
||||
int ret = 0;
|
||||
|
||||
@@ -431,8 +433,8 @@ skip_milf:
|
||||
continue;
|
||||
printf("%s offset: %x\n", node_offsets[i].name, node_offsets[i].offset);
|
||||
int writed = fdt_dump_node_data(fdt, strings, node_offsets[i].name, filename, node_offsets[i].offset);
|
||||
// if (writed)
|
||||
// printf("Written %d bytes\n", writed);
|
||||
if (writed)
|
||||
printf("Written %d bytes\n", writed);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user