Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <u.h>
2
#include <libc.h>
3
#include <oventi.h>
4
 
5
int
6
vtScoreFmt(Fmt *f)
7
{
8
	uchar *v;
9
	int i;
10
 
11
	v = va_arg(f->args, uchar*);
12
	if(v == nil){
13
		fmtprint(f, "*");
14
	}else{
15
		for(i = 0; i < VtScoreSize; i++)
16
			fmtprint(f, "%2.2ux", v[i]);
17
	}
18
 
19
	return 0;
20
}