mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Fixed printf format errors.
This commit is contained in:
parent
d8094070f9
commit
52f07e4286
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=45257
@ -617,13 +617,14 @@ msgq_status(sp, lno, flags)
|
||||
memcpy(p, t, len);
|
||||
p += len;
|
||||
} else {
|
||||
t = msg_cat(sp, "027|line %lu of %lu [%ld%%]", &len);
|
||||
(void)sprintf(p, t, lno, last, (lno * 100) / last);
|
||||
t = msg_cat(sp, "027|line %lu of %lu [%lu%%]", &len);
|
||||
(void)sprintf(p, t, (u_long)lno, (u_long)last,
|
||||
(u_long)(lno * 100) / last);
|
||||
p += strlen(p);
|
||||
}
|
||||
} else {
|
||||
t = msg_cat(sp, "029|line %lu", &len);
|
||||
(void)sprintf(p, t, lno);
|
||||
(void)sprintf(p, t, (u_long)lno);
|
||||
p += strlen(p);
|
||||
}
|
||||
#ifdef DEBUG
|
||||
|
Loading…
Reference in New Issue
Block a user