make log a bit verbose for some useful information
[lunaix-os.git] / lunaix-os / libs / crc.c
index 06ebbac682cb3ce2f6cdbff450be036abc8b0904..c72102348d2327e5fd6e177af38f226a12833a99 100644 (file)
@@ -1,7 +1,8 @@
-#include <lib/crc.h>
+#include <klibc/crc.h>
+#include <lunaix/compiler.h>
 
 // crc32 lookup table. (https://web.mit.edu/freebsd/head/sys/libkern/crc32.c)
 
 // crc32 lookup table. (https://web.mit.edu/freebsd/head/sys/libkern/crc32.c)
-const unsigned int crc32_tab[] = {
+static const unsigned int crc32_tab[] = {
     0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
     0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
     0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2,
     0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
     0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
     0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2,
@@ -54,7 +55,7 @@ const unsigned int crc32_tab[] = {
  * @param size
  * @return unsigned int
  */
  * @param size
  * @return unsigned int
  */
-unsigned int
+unsigned int _weak
 crc32b(unsigned char* data, unsigned int size)
 {
     unsigned int crc = (unsigned int)-1, i = 0;
 crc32b(unsigned char* data, unsigned int size)
 {
     unsigned int crc = (unsigned int)-1, i = 0;