flash/nor: Make info function optional
[fw/openocd] / src / flash / nor / str7x.c
index 49aaa3d78be1a052a00a21ef1e4515f2b5af2227..93b0f8371b1523a2b1b9ba60cf468e848a9a0c85 100644 (file)
@@ -707,12 +707,11 @@ COMMAND_HANDLER(str7x_handle_part_id_command)
 
 static int get_str7x_info(struct flash_bank *bank, char *buf, int buf_size)
 {
-       snprintf(buf, buf_size, "str7x flash driver info");
        /* STR7x flash doesn't support sector protection interrogation.
         * FLASH_NVWPAR acts as a write only register; its read value
         * doesn't reflect the actual protection state of the sectors.
         */
-       LOG_WARNING("STR7x flash lock information might not be correct "
+       snprintf(buf, buf_size, "STR7x flash lock information might not be correct "
                        "due to hardware limitations.");
        return ERROR_OK;
 }