From c4cf066956da0754d3383e60a6ff9f4e7abc9bca Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sun, 13 Mar 2011 21:43:30 +0000 Subject: Début du codage de la partie ncurses. Suppression des printf de debug qui pollue l'écran. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///var/svn/2011-ddhardrescue/trunk@13 d3078510-dda0-49f1-841c-895ef4b7ec81 --- src/recover.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/recover.c') diff --git a/src/recover.c b/src/recover.c index b4f0da7..9b1719b 100644 --- a/src/recover.c +++ b/src/recover.c @@ -76,7 +76,7 @@ void recover(slices_evt_t *slicesEvt, char *src, char *dst, char *ddOpts) { int tryRecoverUntilError(slice_t *sliceToRead, address_t *firstError, char *src, char *dst, char*ddOpts) { //TODO : implement realy that - char ddinvocation[256]; +// char ddinvocation[256]; int res; address_t seek, count; @@ -84,8 +84,8 @@ int tryRecoverUntilError(slice_t *sliceToRead, address_t *firstError, char *src, seek=sliceToRead->begin; count=sliceToRead->end - seek + 1; - res=snprintf(ddinvocation, 255, "dd %s %s %s seek=%lld skip=%lld count=%lld", src, dst, ddOpts, seek, seek, count); - puts(ddinvocation); +// res=snprintf(ddinvocation, 255, "dd %s %s %s seek=%lld skip=%lld count=%lld", src, dst, ddOpts, seek, seek, count); +//TODO : listener to put that info on the interface puts(ddinvocation); /* // Simulate that we have systematically a read error at first sector -- cgit v1.2.3