Diff of /elks/kernel/printk.c [ea71db] .. [e77732] Maximize Restore

  Switch to unified view

a/elks/kernel/printk.c b/elks/kernel/printk.c
...
...
72
static char *hex_lower = "0123456789abcdef";
72
static char *hex_lower = "0123456789abcdef";
73
73
74
static void numout(unsigned long v, int width, int base, int useSign,
74
static void numout(unsigned long v, int width, int base, int useSign,
75
           int Upper, int Zero)
75
           int Upper, int Zero)
76
{
76
{
77
    register char *bp;
77
    char *bp, *bp2;
78
    char *bp2;
78
    char buf[12];
79
    char buf[12];
79
80
80
    if (width > sizeof(buf))        /* Error-check width specified */
81
    if (width > sizeof(buf))        /* Error-check width specified */
81
    width = sizeof(buf);
82
    width = sizeof(buf);
82
83
...
...
204
}
205
}
205
206
206
void panic(char *error, ...)
207
void panic(char *error, ...)
207
{
208
{
208
    va_list p;
209
    va_list p;
209
    int *bp = (int *) &error - 2, i = 0, j;
210
    register int *bp = (int *) &error - 2;
211
    int i = 0, j;
210
212
211
    kputs("\npanic: ");
213
    kputs("\npanic: ");
212
    va_start(p, error);
214
    va_start(p, error);
213
    vprintk(error, p);
215
    vprintk(error, p);
214
    va_end(p);
216
    va_end(p);