summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2019-07-26 18:42:54 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2019-07-26 18:42:54 +0200
commit3643a6c8a86e2ee30d89d6b92ae79f3c84b6c91f (patch)
treec31d7eda5b48053ffcbea1e8be8771aa08c83c38 /src
parent29c6791fa69029d9e6b1c80be745ff8e4e7d63e5 (diff)
fix minor warning in search_part() about format string
Diffstat (limited to 'src')
-rw-r--r--src/godmode.c4
-rw-r--r--src/lang.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/godmode.c b/src/godmode.c
index ca3d333..0b41b0e 100644
--- a/src/godmode.c
+++ b/src/godmode.c
@@ -602,7 +602,7 @@ static list_part_t *search_part(disk_t *disk_car, const list_part_t *list_part_o
old_cylinder=start.cylinder;
wmove(stdscr,ANALYSE_Y,ANALYSE_X);
wclrtoeol(stdscr);
- wprintw(stdscr,"Analyse cylinder %5u/%u: %02u%%",
+ wprintw(stdscr, "Analyse cylinder %5lu/%lu: %02u%%",
start.cylinder, disk_car->geom.cylinders-1,
(unsigned int)(search_location*100/disk_car->disk_size));
wrefresh(stdscr);
@@ -846,7 +846,7 @@ static list_part_t *search_part(disk_t *disk_car, const list_part_t *list_part_o
#ifdef HAVE_NCURSES
wmove(stdscr,ANALYSE_Y+1,ANALYSE_X);
wclrtoeol(stdscr);
- wprintw(stdscr,msg_READ_ERROR_AT, start.cylinder,start.head,start.sector,(unsigned long)(partition->part_offset/disk_car->sector_size));
+ wprintw(stdscr, "Read error at %lu/%u/%u (lba=%lu)\n", start.cylinder,start.head,start.sector,(unsigned long)(partition->part_offset/disk_car->sector_size));
#endif
/* Stop reading after the end of the disk */
if(search_location >= disk_car->disk_real_size)
diff --git a/src/lang.h b/src/lang.h
index f20dce7..3f43d48 100644
--- a/src/lang.h
+++ b/src/lang.h
@@ -21,7 +21,6 @@
*/
#define msg_DUMP_HEXA "Dump Hexa\n"
-#define msg_READ_ERROR_AT "Read error at %u/%u/%u (lba=%lu)\n"
#define c_YES 'Y'
#define c_NO 'N'
#define msg_TBL_NMARK "\nPartition sector doesn't have the endmark 0xAA55\n"