slab: replace struct slab with slab_t
This type should never be modified by the user, and only passed into the functions in slab.c. Using a typedef to notifies the user semantically of this fact
This commit is contained in:
parent
0395b65ad8
commit
29a0435cf6
13 changed files with 196 additions and 46 deletions
|
|
@ -4,7 +4,7 @@
|
|||
#include <kernel/slab.h>
|
||||
#include <kernel/rbtree.h>
|
||||
|
||||
static struct slab *rbt_slab;
|
||||
static slab_t *rbt_slab;
|
||||
|
||||
void rbt_slab_init()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ int snprintf(char *str, const char *restrict fmt, size_t size, ...)
|
|||
|
||||
int kprintf(const char *restrict fmt, ...)
|
||||
{
|
||||
char buf[1024] = { 0 };
|
||||
char buf[2048] = { 0 };
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
int ret = vsnprintf(buf, fmt, 1024, args);
|
||||
|
|
|
|||
Loading…
Reference in a new issue