print out correct previous incremental number
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Fri, 10 Jun 1983 03:50:35 +0000 (19:50 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Fri, 10 Jun 1983 03:50:35 +0000 (19:50 -0800)
SCCS-vsn: sbin/dump/itime.c 1.10
SCCS-vsn: sbin/dump/main.c 1.14

usr/src/sbin/dump/itime.c
usr/src/sbin/dump/main.c

index 59c4567..80136c0 100644 (file)
@@ -1,4 +1,4 @@
-static char *sccsid = "@(#)itime.c     1.9 (Berkeley) %G%";
+static char *sccsid = "@(#)itime.c     1.10 (Berkeley) %G%";
 
 #include "dump.h"
 #include <sys/file.h>
 
 #include "dump.h"
 #include <sys/file.h>
@@ -85,6 +85,7 @@ getitime()
                if (ip->id_ddate <= spcl.c_ddate)
                        continue;
                spcl.c_ddate = ip->id_ddate;
                if (ip->id_ddate <= spcl.c_ddate)
                        continue;
                spcl.c_ddate = ip->id_ddate;
+               lastincno = ip->id_incno;
        } 
 }
 
        } 
 }
 
index 3cd2e20..3ab9701 100644 (file)
@@ -1,4 +1,4 @@
-static char *sccsid = "@(#)main.c      1.13 (Berkeley) %G%";
+static char *sccsid = "@(#)main.c      1.14 (Berkeley) %G%";
 #include "dump.h"
 
 int    notify = 0;     /* notify operator flag */
 #include "dump.h"
 
 int    notify = 0;     /* notify operator flag */
@@ -181,7 +181,8 @@ main(argc, argv)
        getitime();             /* /etc/dumpdates snarfed */
 
        msg("Date of this level %c dump: %s\n", incno, prdate(spcl.c_date));
        getitime();             /* /etc/dumpdates snarfed */
 
        msg("Date of this level %c dump: %s\n", incno, prdate(spcl.c_date));
-       msg("Date of last level %c dump: %s\n", incno, prdate(spcl.c_ddate));
+       msg("Date of last level %c dump: %s\n",
+               lastincno, prdate(spcl.c_ddate));
        msg("Dumping %s ", disk);
        if (dt != 0)
                msgtail("(%s) ", dt->fs_file);
        msg("Dumping %s ", disk);
        if (dt != 0)
                msgtail("(%s) ", dt->fs_file);