Use configuration value for formatter bufsize.
[bertos.git] / bertos / cfg / cfg_formatwr.h
index a3cf6f624129e38efcd16df5156f876f83595e49..ba08654cd790d7e6e3a7e6de13061ec11e0b3f66 100644 (file)
  * \author Daniele Basile <asterix@develer.com>
  */
 
-#ifndef CFG_FORMTWR_H
-#define CFG_FORMTWR_H
+#ifndef CFG_FORMATWR_H
+#define CFG_FORMATWR_H
 
 /**
  * printf()-style formatter configuration.
+ * $WIZ$ type = "enum"; value_list = "printf_list"
  *
  * \sa PRINTF_DISABLED
  * \sa PRINTF_NOMODIFIERS
  */
 #define CONFIG_PRINTF PRINTF_FULL
 
+/**
+ * Size of buffer to format "%" sequences in printf.
+ *
+ * Warning: no check on buffer size is done when formatting, be careful especially
+ * with big numbers and %f formatting.
+ *
+ * $WIZ$ type = "int"
+ * $WIZ$ min = 4
+ */
+#define CONFIG_FRMWRI_BUFSIZE  20
 
-#endif /* CFG_FORMTWR_H */
+#endif /* CFG_FORMATWR_H */