Source-Changes-HG archive

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

[src/trunk]: src/external/gpl3/binutils/usr.sbin/mdsetimage Print more info.



details:   https://anonhg.NetBSD.org/src/rev/6e559b459406
branches:  trunk
changeset: 347878:6e559b459406
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Sep 20 20:57:45 2016 +0000

description:
Print more info.

diffstat:

 external/gpl3/binutils/usr.sbin/mdsetimage/mdsetimage.c |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r 0ba1623802f1 -r 6e559b459406 external/gpl3/binutils/usr.sbin/mdsetimage/mdsetimage.c
--- a/external/gpl3/binutils/usr.sbin/mdsetimage/mdsetimage.c   Tue Sep 20 20:56:57 2016 +0000
+++ b/external/gpl3/binutils/usr.sbin/mdsetimage/mdsetimage.c   Tue Sep 20 20:57:45 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mdsetimage.c,v 1.2 2010/11/06 16:03:23 uebayasi Exp $ */
+/* $NetBSD: mdsetimage.c,v 1.3 2016/09/20 20:57:45 christos Exp $ */
 /* from: NetBSD: mdsetimage.c,v 1.15 2001/03/21 23:46:48 cgd Exp $ */
 
 /*
@@ -38,7 +38,7 @@
 #if !defined(lint)
 __COPYRIGHT("@(#) Copyright (c) 1996\
  Christopher G. Demetriou.  All rights reserved.");
-__RCSID("$NetBSD: mdsetimage.c,v 1.2 2010/11/06 16:03:23 uebayasi Exp $");
+__RCSID("$NetBSD: mdsetimage.c,v 1.3 2016/09/20 20:57:45 christos Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -167,6 +167,10 @@
        md_root_size_offset = md_root_symbols[X_MD_ROOT_SIZE].offset;
        md_root_size = bfd_get_32(abfd, &mappedkfile[md_root_size_offset]);
 
+       if (verbose)
+               fprintf(stderr, "root @ %#zx/%zu\n",
+                   md_root_offset, md_root_size);
+
        munmap(mappedkfile, ksb.st_size);
 
        if (extract) {
@@ -187,8 +191,8 @@
        }
 
        if (verbose)
-               fprintf(stderr, "copying image %s %s %s\n", fsfile,
-                   (extract ? "from" : "into"), kfile);
+               fprintf(stderr, "copying image %s %s %s (%zd bytes)\n", fsfile,
+                   (extract ? "from" : "into"), kfile, left_to_copy);
 
        if (lseek(kfd, md_root_offset, SEEK_SET) != md_root_offset)
                err(1, "seek %s", kfile);



Home | Main Index | Thread Index | Old Index