master
Сергей Маринкевич 3 years ago
parent fc3b131123
commit 7dfa8245c1

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

Loading…
Cancel
Save