Following patch enables UDMA on ALL IDE devices. The current code enables it only...
[coreboot.git] / src / lib / clog2.c
index b9b173177cf2a781dde39c32084bdbb81a992688..c6fe6f6cc87f81ac062f24c5fb07dd3f325dd93d 100644 (file)
@@ -4,6 +4,8 @@
 #include <console/console.h>
 #endif
 
+#include <lib.h>
+
 /* Assume 8 bits per byte */
 #define CHAR_BIT 8
 
@@ -15,7 +17,7 @@ unsigned long log2(unsigned long x)
 
         if (! x) {
 #ifdef DEBUG_LOG2
-                printk_warning("%s called with invalid parameter of 0\n",
+                printk(BIOS_WARNING, "%s called with invalid parameter of 0\n",
                        __func__);
 #endif
                 return -1;