mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-11 09:50:12 +00:00
fortune: Unindent a debug printf in get_fort().
The debug printf is intended to execute after the loop has ended to log the selected file. Reviewed by: imp, emaste Reported by: GCC Differential Revision: https://reviews.freebsd.org/D36815
This commit is contained in:
parent
d81082a7ad
commit
db695788fc
@ -958,7 +958,7 @@ get_fort(void)
|
||||
else {
|
||||
choice = arc4random_uniform(100);
|
||||
DPRINTF(1, (stderr, "choice = %d\n", choice));
|
||||
for (fp = File_list; fp->percent != NO_PROB; fp = fp->next)
|
||||
for (fp = File_list; fp->percent != NO_PROB; fp = fp->next) {
|
||||
if (choice < fp->percent)
|
||||
break;
|
||||
else {
|
||||
@ -967,9 +967,10 @@ get_fort(void)
|
||||
" skip \"%s\", %d%% (choice = %d)\n",
|
||||
fp->name, fp->percent, choice));
|
||||
}
|
||||
DPRINTF(1, (stderr,
|
||||
"using \"%s\", %d%% (choice = %d)\n",
|
||||
fp->name, fp->percent, choice));
|
||||
}
|
||||
DPRINTF(1, (stderr,
|
||||
"using \"%s\", %d%% (choice = %d)\n",
|
||||
fp->name, fp->percent, choice));
|
||||
}
|
||||
if (fp->percent != NO_PROB)
|
||||
get_tbl(fp);
|
||||
|
Loading…
Reference in New Issue
Block a user