UbixOS  2.0
kprintf.c File Reference
#include <lib/kprintf.h>
#include <string.h>
#include <sys/video.h>
#include <ubixos/kpanic.h>
Include dependency graph for kprintf.c:

Go to the source code of this file.

Data Structures

union  uu
 

Macros

#define PCHAR(c)   {int cc=(c); if (func) (*func)(cc,arg); else *d++ = cc; retval++; }
 

Functions

u_quad_t __qdivrem (u_quad_t uq, u_quad_t vq, u_quad_t *arq)
 
u_quad_t __umoddi3 (u_quad_t a, u_quad_t b)
 
int kprintf (const char *fmt,...)
 
int kvprintf (const char *fmt, void(*func)(int, void *), void *arg, int radix, va_list ap)
 
int sprintf (char *buf, const char *fmt,...)
 

Variables

int ogprintOff = 0x1
 
int printOff = 0x0
 

Macro Definition Documentation

◆ PCHAR

#define PCHAR (   c)    {int cc=(c); if (func) (*func)(cc,arg); else *d++ = cc; retval++; }

Function Documentation

◆ __qdivrem()

u_quad_t __qdivrem ( u_quad_t  uq,
u_quad_t  vq,
u_quad_t arq 
)

Definition at line 56 of file kprintf.c.

References B, COMBINE, H, HHALF, L, LHALF, uu::q, uu::ul, and uu::uq.

Referenced by __umoddi3().

◆ __umoddi3()

u_quad_t __umoddi3 ( u_quad_t  a,
u_quad_t  b 
)

Definition at line 248 of file kprintf.c.

References __qdivrem().

Here is the call graph for this function:

◆ kprintf()

int kprintf ( const char *  fmt,
  ... 
)

◆ kvprintf()

int kvprintf ( const char *  fmt,
void(*)(int, void *)  func,
void *  arg,
int  radix,
va_list  ap 
)

Definition at line 315 of file kprintf.c.

References MAXNBUF, NULL, PCHAR, uu::q, and va_arg.

Referenced by kprintf(), and sprintf().

◆ sprintf()

int sprintf ( char *  buf,
const char *  fmt,
  ... 
)

Definition at line 278 of file kprintf.c.

References kvprintf(), NULL, va_end, and va_start.

Referenced by fopen(), sys_chdir(), sys_fchdir(), sys_fstatfs(), sys_getcwd(), sys_statfs(), sysGetCwd(), sysMkDir(), ubixFSLoadDir(), ubixFSmkDir(), and vfs_mount().

Here is the call graph for this function:

Variable Documentation

◆ ogprintOff

int ogprintOff = 0x1

Definition at line 257 of file kprintf.c.

Referenced by kprintf(), sdeThread(), and systemTask().

◆ printOff

int printOff = 0x0

Definition at line 256 of file kprintf.c.

Referenced by kprintf(), sdeThread(), ogDisplay_UbixOS::SetMode(), and systemTask().