if (ret == -1 || ret >= sz)
if (ret == -1) ret = 0; if (ret >= sz)
_print_unit (Log_unit *unit, char *buf, size_t sz){    size_t ret, orig_sz = sz;    if (sz <= 0)    	return(0);    ret = snprintf (buf, sz, "%s:", unit->name);    if (ret == -1 || ret >= sz)      ret = sz - 1;    UPDATESZ(buf,sz,ret);    ret = unparse_flags (log_get_mask (unit), unit->unit, buf, sz);    UPDATESZ(buf,sz,ret);    return orig_sz - sz;}