Add missing header.
[bertos.git] / mware / formatwr.c
index 17b9696b0cba335f75811d94865e53278e931aa3..8f30f22b4e911e3fc5cbd532f3ed78a747b0417a 100755 (executable)
  * width and precision arguments.
  */
 
-/*
- * $Log$
- * Revision 1.7  2004/08/04 15:53:47  rasky
- * Nuove opzioni di configurazione per formatted_write e ridotto maggiormente l'utilizzo dellos tack
- *
- * Revision 1.6  2004/07/30 14:34:10  rasky
- * Vari fix per documentazione e commenti
- * Aggiunte PP_CATn e STATIC_ASSERT
- *
- * Revision 1.5  2004/07/29 22:57:09  bernie
- * Switch to new-style config handling.
- *
- * Revision 1.4  2004/07/21 00:20:20  bernie
- * Allow completely disabling printf()-like formatter.
- *
- * Revision 1.3  2004/07/18 22:00:15  bernie
- * Reorganize configuration parameters to match DevLib's convention.
- *
- * Revision 1.2  2004/06/03 11:27:09  bernie
- * Add dual-license information.
- *
- * Revision 1.1  2004/05/23 15:43:16  bernie
- * Import mware modules.
- *
- */
+/*#*
+ *#* $Log$
+ *#* Revision 1.10  2004/10/26 09:01:35  bernie
+ *#* Fix spacing.
+ *#*
+ *#* Revision 1.9  2004/09/14 21:06:23  bernie
+ *#* Spelling fix.
+ *#*
+ *#* Revision 1.8  2004/08/25 14:12:09  rasky
+ *#* Aggiornato il comment block dei log RCS
+ *#*
+ *#* Revision 1.7  2004/08/04 15:53:47  rasky
+ *#* Nuove opzioni di configurazione per formatted_write e ridotto maggiormente l'utilizzo dellos tack
+ *#*
+ *#* Revision 1.6  2004/07/30 14:34:10  rasky
+ *#* Vari fix per documentazione e commenti
+ *#* Aggiunte PP_CATn e STATIC_ASSERT
+ *#*
+ *#* Revision 1.5  2004/07/29 22:57:09  bernie
+ *#* Switch to new-style config handling.
+ *#*
+ *#* Revision 1.4  2004/07/21 00:20:20  bernie
+ *#* Allow completely disabling printf()-like formatter.
+ *#*
+ *#* Revision 1.3  2004/07/18 22:00:15  bernie
+ *#* Reorganize configuration parameters to match DevLib's convention.
+ *#*
+ *#* Revision 1.2  2004/06/03 11:27:09  bernie
+ *#* Add dual-license information.
+ *#*
+ *#* Revision 1.1  2004/05/23 15:43:16  bernie
+ *#* Import mware modules.
+ *#*
+ *#*/
 
 #include "formatwr.h"
 #include <compiler.h> /* progmem macros */
 #include <config.h> /* CONFIG_ macros */
-#include <drv/kdebug.h> /* ASSERT */
+#include <debug.h> /* ASSERT */
 
 #ifndef CONFIG_PRINTF_N_FORMATTER
        /*! Enable arcane %n formatter */
 #else
        /*
         * Conservative estimate. Should be (probably) 12 (which is the size necessary
-        * to represent (2^32-1) in octal plus the sign bit 
+        * to represent (2^32-1) in octal plus the sign bit.
         */
        #define FRMWRI_BUFSIZE 16
 #endif
@@ -569,9 +578,9 @@ NEXT_FLAG:
                                        ulong = flags.h_modifier ?
                                                (unsigned long)(unsigned short) va_arg(ap, int)
                                                : (unsigned long)va_arg(ap, int);
-                               flags.div_factor = 
+                               flags.div_factor =
 #if CONFIG_PRINTF_OCTAL_FORMATTER
-                                       (format_flag == 'o') ? DIV_OCT : 
+                                       (format_flag == 'o') ? DIV_OCT :
 #endif
                                        (format_flag == 'u') ? DIV_DEC : DIV_HEX;
                                flags.plus_space_flag = PSF_NONE;