Subversion Repositories HelenOS

Compare Revisions

Regard whitespace Rev 2027 → Rev 2028

/trunk/kernel/test/print/print1.def
0,0 → 1,6
{
"print1",
"Printf test",
&test_print1,
true
},
/trunk/kernel/test/print/print1.c
30,7 → 30,7
 
#define BUFFER_SIZE 32
 
void test_print1(void)
char * test_print1(void)
{
int retval;
unative_t nat = 0x12345678u;
37,8 → 37,6
char buffer[BUFFER_SIZE];
printf(" Printf test \n");
printf(" text 10.8s %*.*s \n", 5, 3, "text");
printf(" very long text 10.8s %10.8s \n", "very long text");
printf(" text 8.10s %8.10s \n", "text");
67,5 → 65,5
retval = snprintf(buffer, BUFFER_SIZE, "Very long %s. This text`s length is more than %d. We are interested in the result.", "text" , BUFFER_SIZE);
printf("Result is: '%s', retval = %d\n", buffer, retval);
return;
return NULL;
}