ref: 063d86a3015f5f254389e61b57e7f14822e889c3
dir: /tabs.c/
#include <u.h>
#include <libc.h>
#include <fcall.h>
#include <thread.h>
#include <9p.h>
#include "svc.h"
int
Tconv(Fmt *fp)
{
char s[1024];
Buffer *b;
b = va_arg(fp->args, Buffer*);
if(b->notify)
snprint(s, sizeof(s), "![%d] %s", b->unread, b->name);
else
snprint(s, sizeof(s), "[%d] %s", b->unread, b->name);
return fmtstrcpy(fp, s);
}