Fixed printf and VGA driver bugs, also added README

This commit is contained in:
ice-bit
2019-07-04 01:58:34 +02:00
parent cd820126b2
commit 222ab282d9
7 changed files with 728 additions and 13 deletions

View File

@@ -40,10 +40,10 @@ int printf(const char *format, ...) {
kprint(s);
break;
default:
kprint_c((uint8_t*)format+1, 1, WHITE, BLACK);
kprint_c((uint8_t*)format+i, 1, WHITE, BLACK);
}
} else
kprint_c((uint8_t*)format+1, 1, WHITE, BLACK);
kprint_c((uint8_t*)format+i, 1, WHITE, BLACK);
}
va_end(ap);
return 0;
@@ -51,4 +51,4 @@ int printf(const char *format, ...) {
void puts(const char *buf) {
printf("%s\n", buf);
}
}