Module Name:    src
Committed By:   mrg
Date:           Thu May  5 07:45:43 UTC 2022

Modified Files:
        src/sbin/restore: tape.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sbin/restore/tape.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/restore/tape.c
diff -u src/sbin/restore/tape.c:1.71 src/sbin/restore/tape.c:1.72
--- src/sbin/restore/tape.c:1.71	Sat Jun 19 13:56:35 2021
+++ src/sbin/restore/tape.c	Thu May  5 07:45:43 2022
@@ -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 @@ loop:
 			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++)

Reply via email to