aboutsummaryrefslogtreecommitdiffstats
path: root/treesource.c
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2018-01-12 21:44:53 +0000
committerKyle Evans <kevans@FreeBSD.org>2018-01-12 21:44:53 +0000
commit2f36e4ecd0f0c04781c752e5382906a43feaf4e3 (patch)
tree27f6eba9c66c680c931ce0562e2586cc9a3c07de /treesource.c
parentf059bd1ebfc4cf2e96c4639ad7fa6cf3a3198a2f (diff)
downloadsrc-vendor/dtc.tar.gz
src-vendor/dtc.zip
Notes
Notes: svn path=/vendor/dtc/dist/; revision=327893 svn path=/vendor/dtc/1.4.6/; revision=327894; tag=vendor/dtc/1.4.6
Diffstat (limited to 'treesource.c')
-rw-r--r--treesource.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/treesource.c b/treesource.c
index c9d8967969f9..2461a3d068a0 100644
--- a/treesource.c
+++ b/treesource.c
@@ -137,7 +137,7 @@ static void write_propval_string(FILE *f, struct data val)
static void write_propval_cells(FILE *f, struct data val)
{
void *propend = val.val + val.len;
- cell_t *cp = (cell_t *)val.val;
+ fdt32_t *cp = (fdt32_t *)val.val;
struct marker *m = val.markers;
fprintf(f, "<");
@@ -275,8 +275,8 @@ void dt_to_source(FILE *f, struct dt_info *dti)
for_each_label(re->labels, l)
fprintf(f, "%s: ", l->label);
fprintf(f, "/memreserve/\t0x%016llx 0x%016llx;\n",
- (unsigned long long)re->re.address,
- (unsigned long long)re->re.size);
+ (unsigned long long)re->address,
+ (unsigned long long)re->size);
}
write_tree_source_node(f, dti->dt, 0);