On Sunday 20 September 2009, Johnny Halfmoon wrote:
> --- trunk/src/flash/stm32x.c (revision 2736)
> +++ trunk/src/flash/stm32x.c (working copy)
> @@ -410,7 +410,7 @@
>
> if ((first && (first % stm32x_info->ppage_size)) || ((last + 1) &&
> (last + 1) % stm32x_info->ppage_size))
> {
> - LOG_WARNING("sector start/end incorrect - stm32 has %dK
> sector protection", stm32x_info->ppage_size);
> + LOG_WARNING("sector start/end incorrect - stm32 has %dK
> sector protection; please use a multiple of %d sectors",
> stm32x_info->ppage_size);
> return ERROR_FLASH_SECTOR_INVALID;
> }
>
>
Doesn't build:
stm32x.c: In function ‘stm32x_protect’:
stm32x.c:413: warning: too few arguments for format
You need to compute that multiple. :)
Suggest you avoid such a LONG message in any case.
Better: "Invalid sector start/end; must be a multiple of %d sectors."
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development