Commit 380ba3fe91ff28079659290c5a9e024aad0f20eb

Authored by Ye Li
Committed by guoyin.chen
1 parent 21c6f85d00

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>

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 */