ref: e805b8fac9c9fb8beab55ecc93db526d2b3b8cfc
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);
}