Subversion Repositories HelenOS-historic

Rev

Rev 534 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 534 Rev 615
Line 53... Line 53...
53
static void print_str(const char *str)
53
static void print_str(const char *str)
54
{
54
{
55
    int i = 0;
55
    int i = 0;
56
    char c;
56
    char c;
57
   
57
   
58
    while (c = str[i++])
58
    while ((c = str[i++]))
59
        putchar(c);
59
        putchar(c);
60
}
60
}
61
 
61
 
62
 
62
 
63
/** Print hexadecimal digits
63
/** Print hexadecimal digits
Line 288... Line 288...
288
    va_start(ap, fmt);
288
    va_start(ap, fmt);
289
 
289
 
290
    irqpri = interrupts_disable();
290
    irqpri = interrupts_disable();
291
    spinlock_lock(&printflock);
291
    spinlock_lock(&printflock);
292
 
292
 
293
    while (c = fmt[i++]) {
293
    while ((c = fmt[i++])) {
294
        switch (c) {
294
        switch (c) {
295
 
295
 
296
            /* control character */
296
            /* control character */
297
            case '%':
297
            case '%':
298
            precision = DEFAULT_DOUBLE_PRECISION;
298
            precision = DEFAULT_DOUBLE_PRECISION;