diff options
author | George McCollister <george.mccollister@gmail.com> | 2017-03-30 17:44:25 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-04-13 20:43:49 +0300 |
commit | f156b5b59750f4140ffa2dd6a5eab686ba0212c3 (patch) | |
tree | f50439a666cc62aad59bf49b611a1f43db75103d /tools/fdtgrep.c | |
parent | 6db06f94e19d539bb7001a666e7c52672e0682ea (diff) | |
download | u-boot-f156b5b59750f4140ffa2dd6a5eab686ba0212c3.tar.xz |
dtoc: Decode val if it's a byte string
With Python 3.5.2 encode will throw an exception if val is a byte array.
Decode it to a string first. This assumes it's utf-8, if it's not valid
utf-8 it will throw an exception.
Signed-off-by: George McCollister <george.mccollister@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/fdtgrep.c')
0 files changed, 0 insertions, 0 deletions