libc: set malloctag for runesmprint()

This commit is contained in:
cinap_lenrek 2013-09-06 16:55:13 +02:00
parent 1eb2c757e7
commit 81618e61df
2 changed files with 4 additions and 1 deletions

View file

@ -10,5 +10,7 @@ runesmprint(char *fmt, ...)
va_start(args, fmt);
p = runevsmprint(fmt, args);
va_end(args);
if(p != nil)
setmalloctag(p, getcallerpc(&fmt));
return p;
}

View file

@ -10,6 +10,7 @@ smprint(char *fmt, ...)
va_start(args, fmt);
p = vsmprint(fmt, args);
va_end(args);
setmalloctag(p, getcallerpc(&fmt));
if(p != nil)
setmalloctag(p, getcallerpc(&fmt));
return p;
}