summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-01-09 22:15:53 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2017-01-09 22:15:53 +0100
commit1d7f6048f49df863d0b491faa3a39e206290848c (patch)
tree20ec9ba5f542cac54e7d5aeab6023a71a98f1373 /utils
parent90284b6fe0e5ba89fe63943212bfd7ffc3e96d47 (diff)
downloadrockbox-1d7f6048f49df863d0b491faa3a39e206290848c.tar.gz
rockbox-1d7f6048f49df863d0b491faa3a39e206290848c.tar.bz2
rockbox-1d7f6048f49df863d0b491faa3a39e206290848c.zip
nwztools: add a "reset all settings" message in dest_tool
Users can't read the wiki instructions, hopefully they can read this... Change-Id: I3840879fdc663fb6e7f9234f352eea04a556256a
Diffstat (limited to 'utils')
-rw-r--r--utils/nwztools/scsitools/scsitool.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/nwztools/scsitools/scsitool.c b/utils/nwztools/scsitools/scsitool.c
index 46951fdbbb..e6051067b7 100644
--- a/utils/nwztools/scsitools/scsitool.c
+++ b/utils/nwztools/scsitools/scsitool.c
@@ -801,6 +801,10 @@ int do_dest(int argc, char **argv)
set_little_endian32(shp + 4, sps);
int ret = write_nvp_node(shp_index, shp, size);
free(shp);
+ if(ret != 0)
+ printf("An error occured when writing node: %d\n", ret);
+ else
+ printf("Destination successfully changed.\nPlease RESET ALL SETTINGS on your device!\n");
return ret;
}
return 0;