Commit 05f477fa301b1c8e1b48d9411c5836c314fe59ac

Authored by Ye Li
Committed by guoyin.chen
1 parent f2d295e18b

MLK-12483-1 common: Fix fdt command systemsetup issue

The fdt command "fdt systemsetup" can't work because the do_fdt check the
start char 's' for command "fdt set". So the fdt systemsetup will also go into
the "fdt set" in fault. Fix this problem by checking the whole word "set" for
"fdt set" command.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 771dab97f93e1ab07a5f2f29f1622528b9477969)

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -243,7 +243,7 @@
243 243 /*
244 244 * Set the value of a property in the working_fdt.
245 245 */
246   - } else if (argv[1][0] == 's') {
  246 + } else if (strncmp(argv[1], "set", 3) == 0) {
247 247 char *pathp; /* path */
248 248 char *prop; /* property */
249 249 int nodeoffset; /* node offset from libfdt */