Robert Wing 20123b25ee fsck_ffs(8): fix divide by zero when debug messages are enabled
Only print buffer cache debug message when a cache lookup has been done.

When running `fsck_ffs -d` on a gjournal'ed filesystem, it's possible
that totalreads is greater than zero when no cache lookup has been
done - causing a divide by zero. This commit fixes the following error:

    Floating point exception (core dumped)

Reviewed by:    mckusick
Differential Revision:  https://reviews.freebsd.org/D30370
2021-05-22 11:03:36 -08:00
..
2019-08-13 20:06:55 +00:00
2019-11-21 01:24:49 +00:00
2019-11-21 01:24:49 +00:00
2019-08-13 20:06:55 +00:00
2020-10-09 14:03:45 +00:00
2021-04-06 16:32:57 -07:00
2021-03-28 14:45:05 -04:00
2021-05-04 14:06:31 -06:00
2021-05-11 17:38:26 +02:00
2021-02-11 06:03:53 +01:00
2020-10-09 14:03:45 +00:00
2021-04-17 23:16:17 +02:00
2020-11-26 04:29:30 +00:00
2020-11-10 14:17:05 +00:00
2019-12-11 17:37:53 +00:00
2020-07-05 13:08:17 +00:00
2020-11-26 04:29:30 +00:00