bug-ddrescue
[Top][All Lists]
Advanced

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

[Bug-ddrescue] [patch] [proposal] debug_printf and debug print macros


From: Alexander Sashnov
Subject: [Bug-ddrescue] [patch] [proposal] debug_printf and debug print macros
Date: Sat, 29 Jun 2013 22:25:58 +0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

Hello to developers of GNU ddrescue.

I've just wondered how you manage to debug this software without any debug printf or something like this.

Feel free to test, use and include to the upstream the patch from the attachment.


How to apply this patch (tested on Ubuntu 13.04 x32):

# Ubuntu-specific: lzip installation:
$ sudo apt-get instal debian-keyring
$ sudo apt-get install lzip

$ cd ~/tmp
$ wget http://download.savannah.gnu.org/releases/ddrescue/ddrescue-1.17-rc4.tar.lz
$ tar xf ddrescue-1.17-rc4.tar.lz
$ cd ddrescue-1.17-rc4/
$ patch -p1 < ~/Downloads/debug_printf_for_ddrescue.patch
$ ./configure
$ make


How to use it:

$ DEBUG_OUTPUT_FILENAME=debug_output.log ./ddrescue /dev/mapper/disk_with_bad_blocks destination.img logfile.log

debug_output.log will be created in current dir.





PS.   Here is logfile.log and debug_output.log in the attachment
 for  640 sectors device with bad blocks:

$ sudo dmsetup table /dev/mapper/disk_with_bad_blocks
0 280 linear 7:4 0
280 72 error
352 288 linear 7:4 352

This particular debug printf log file may also be enteresting
(I've seen subject "10K/s on badblocks" in this list).

--
Best regards,
Alexander Sashnov.

Attachment: debug_printf_for_ddrescue.patch
Description: Text Data

Attachment: debug_output.log
Description: Text Data

Attachment: logfile.log
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]