From 9d7d537acbe0e6a060aec6a0cc5dbba0d30a2103 Mon Sep 17 00:00:00 2001 From: drochner Date: Sun, 30 Nov 1997 15:49:34 +0000 Subject: [PATCH] Clean up usage of printf() vs db_printf(): The diagnostic messages when symbol tables are loaded don't belong to the user interaction, their output lines should not be counted by ddb's builtin pager. --- sys/ddb/db_aout.c | 10 +++++----- sys/ddb/db_elf.c | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/sys/ddb/db_aout.c b/sys/ddb/db_aout.c index 0d85e9c380e1..65b2d20618b5 100644 --- a/sys/ddb/db_aout.c +++ b/sys/ddb/db_aout.c @@ -1,4 +1,4 @@ -/* $NetBSD: db_aout.c,v 1.17 1997/06/26 01:11:00 thorpej Exp $ */ +/* $NetBSD: db_aout.c,v 1.18 1997/11/30 15:49:34 drochner Exp $ */ /* * Mach Operating System @@ -114,7 +114,7 @@ X_db_sym_init(vsymtab, vesymtab, name) (((vm_offset_t)(x) + sizeof(vm_size_t) - 1) & ~(sizeof(vm_size_t) - 1)) if (round_to_size(estrtab) != round_to_size(esymtab)) { - db_printf("[ %s symbol table not valid ]\n", name); + printf("[ %s symbol table not valid ]\n", name); return; } #undef round_to_size @@ -126,7 +126,7 @@ X_db_sym_init(vsymtab, vesymtab, name) strx = sp->n_un.n_strx; if (strx != 0) { if (strx > slen) { - db_printf("Bad string table index (%#x)\n", strx); + printf("Bad string table index (%#x)\n", strx); sp->n_un.n_name = 0; continue; } @@ -137,8 +137,8 @@ X_db_sym_init(vsymtab, vesymtab, name) if (db_add_symbol_table((char *)sym_start, (char *)sym_end, name, (char *)symtab) != -1) { #ifndef SYMTAB_SPACE - db_printf("[ preserving %d bytes of %s symbol table ]\n", - esymtab - (char *)symtab, name); + printf("[ preserving %d bytes of %s symbol table ]\n", + esymtab - (char *)symtab, name); #endif } } diff --git a/sys/ddb/db_elf.c b/sys/ddb/db_elf.c index ca798742f573..b6934f82fde5 100644 --- a/sys/ddb/db_elf.c +++ b/sys/ddb/db_elf.c @@ -1,4 +1,4 @@ -/* $NetBSD: db_elf.c,v 1.2 1997/09/05 21:46:59 thorpej Exp $ */ +/* $NetBSD: db_elf.c,v 1.3 1997/11/30 15:49:35 drochner Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -179,20 +179,20 @@ X_db_sym_init(symtab, esymtab, name) */ if (db_add_symbol_table((char *)symtab_start, (char *)symtab_end, name, (char *)symtab) != -1) - db_printf("[ preserving %lu bytes of %s symbol table ]\n", - (u_long)roundup((esymtab - symtab), sizeof(u_long)), name); + printf("[ preserving %lu bytes of %s symbol table ]\n", + (u_long)roundup((esymtab - symtab), sizeof(u_long)), name); return; badheader: - db_printf("[ %s symbol table not valid ]\n", name); + printf("[ %s symbol table not valid ]\n", name); return; multiple_strtab: - db_printf("[ %s has multiple string tables ]\n", name); + printf("[ %s has multiple string tables ]\n", name); return; multiple_symtab: - db_printf("[ %s has multiple symbol tables ]\n", name); + printf("[ %s has multiple symbol tables ]\n", name); return; }