From 7dfa8245c1a33e37497644a39146765f5c642a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=9C=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=BD=D0=BA=D0=B5=D0=B2=D0=B8=D1=87?= Date: Mon, 26 Dec 2022 11:49:00 +0700 Subject: [PATCH] idk2 --- main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 2f533e6..c8611f5 100644 --- a/main.c +++ b/main.c @@ -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;