]> git.sur5r.net Git - openocd/commitdiff
flash Kinetis: reduce a flash write message severity to info
authorJoakim Nohlgård <joakim.nohlgard@eistec.se>
Wed, 12 Apr 2017 08:27:28 +0000 (10:27 +0200)
committerFreddie Chopin <freddie.chopin@gmail.com>
Sun, 23 Apr 2017 19:49:22 +0000 (20:49 +0100)
There is nothing the user can do if their device does not support sector
programming, there is no reason to have this message at warning level.

Change-Id: Ic9b7386e59b64fece7fbfdc543bdfeeed3eae73d
Signed-off-by: Joakim Nohlgård <joakim.nohlgard@eistec.se>
Reviewed-on: http://openocd.zylin.com/4105
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
src/flash/nor/kinetis.c

index 49a6e2721b3d7af6398f1dd0d04cd3417439e0cf..7e9bbdef4d1c035b4f5d0d8fe10a85b27204c419 100644 (file)
@@ -1371,7 +1371,7 @@ static int kinetis_write_inner(struct flash_bank *bank, const uint8_t *buffer,
        if (!(kinfo->flash_support & FS_PROGRAM_SECTOR)) {
                /* fallback to longword write */
                fallback = 1;
-               LOG_WARNING("This device supports Program Longword execution only.");
+               LOG_INFO("This device supports Program Longword execution only.");
        } else {
                result = kinetis_make_ram_ready(bank->target);
                if (result != ERROR_OK) {