Subversion Repositories HelenOS

Rev

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

Rev 2329 Rev 2354
Line 54... Line 54...
54
 * @param count  Number of characters to be printed.
54
 * @param count  Number of characters to be printed.
55
 * @param unused Unused parameter.
55
 * @param unused Unused parameter.
56
 *
56
 *
57
 * @return Number of printed characters.
57
 * @return Number of printed characters.
58
 */
58
 */
59
static int debug_write(const char *str, size_t count, void *unused)
59
static int debug_write(const char *str, size_t count, void *unused)
60
{
60
{
61
    int i;
61
    int i;
62
    for (i = 0; i < count; ++i) {
62
    for (i = 0; i < count; ++i) {
63
        putc(str[i]);
63
        putc(str[i]);
64
    }
64
    }
Line 79... Line 79...
79
    printf_core(fmt, &ps, args);
79
    printf_core(fmt, &ps, args);
80
 
80
 
81
    va_end(args);
81
    va_end(args);
82
}
82
}
83
 
83
 
-
 
84
/** Prints a string.
-
 
85
 *
-
 
86
 * @param str String to print
-
 
87
 */
-
 
88
void debug_puts(const char *str)
-
 
89
{
-
 
90
    while ( *str ) {
-
 
91
        putc(*str);
-
 
92
        str++;
-
 
93
    }
-
 
94
}
-
 
95
 
84
/** @}
96
/** @}
85
 */
97
 */