Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/restore include the filename in the panic message for m...



details:   https://anonhg.NetBSD.org/src/rev/55d269377a9d
branches:  trunk
changeset: 365954:55d269377a9d
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu May 05 07:45:43 2022 +0000

description:
include the filename in the panic message for missing data.

instead of merely seeing:
        getfile: lost data
now this is seen:
        getfile: lost data: ./usr/libdata/debug/usr/libexec/cc1.debug

diffstat:

 sbin/restore/tape.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7f82c2986008 -r 55d269377a9d sbin/restore/tape.c
--- a/sbin/restore/tape.c       Thu May 05 07:18:02 2022 +0000
+++ b/sbin/restore/tape.c       Thu May 05 07:45:43 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tape.c,v 1.71 2021/06/19 13:56:35 christos Exp $       */
+/*     $NetBSD: tape.c,v 1.72 2022/05/05 07:45:43 mrg Exp $    */
 
 /*
  * Copyright (c) 1983, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)tape.c     8.9 (Berkeley) 5/1/95";
 #else
-__RCSID("$NetBSD: tape.c,v 1.71 2021/06/19 13:56:35 christos Exp $");
+__RCSID("$NetBSD: tape.c,v 1.72 2022/05/05 07:45:43 mrg Exp $");
 #endif
 #endif /* not lint */
 
@@ -1122,7 +1122,7 @@
                        curfile.name, blksread);
        }
        if (curblk > 0)
-               panic("getfile: lost data\n");
+               panic("getfile: lost data: %s\n", curfile.name);
        /* Skip over Linux extended attributes. */
        if (spcl.c_type == TS_INODE && (spcl.c_flags & DR_EXTATTRIBUTES)) {
                for (i = 0; i < spcl.c_count; i++)



Home | Main Index | Thread Index | Old Index