diff options
-rw-r--r-- | libexec/ld.so/dlfcn.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libexec/ld.so/dlfcn.c b/libexec/ld.so/dlfcn.c index 9f6b035085d..1dd00d338af 100644 --- a/libexec/ld.so/dlfcn.c +++ b/libexec/ld.so/dlfcn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dlfcn.c,v 1.33 2003/10/01 02:55:23 millert Exp $ */ +/* $OpenBSD: dlfcn.c,v 1.34 2004/05/22 19:42:52 drahn Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -321,9 +321,11 @@ _dl_show_objects(void) { extern int _dl_symcachestat_hits; extern int _dl_symcachestat_lookups; - DL_DEB(("symcache lookups %d hits %d ratio %d% hits\n", - _dl_symcachestat_lookups, _dl_symcachestat_hits, - (_dl_symcachestat_hits * 100) / _dl_symcachestat_lookups)); + if (_dl_symcachestat_lookups != 0) + DL_DEB(("symcache lookups %d hits %d ratio %d% hits\n", + _dl_symcachestat_lookups, _dl_symcachestat_hits, + (_dl_symcachestat_hits * 100) / + _dl_symcachestat_lookups)); } } |