From 6f3aed396c8a14190a4b52a340b9217e1b6598fa Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Tue, 14 Apr 2015 07:56:21 +0200 Subject: [PATCH] add missing return to new line at the end of LBA48 support message Search for backup partition when EFI GPT is selected --- src/godmode.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/godmode.c b/src/godmode.c index 43688c70..c6e4fe1e 100644 --- a/src/godmode.c +++ b/src/godmode.c @@ -309,7 +309,7 @@ static int interface_part_bad_log(disk_t *disk_car, list_part_t *list_part) #if defined(__CYGWIN__) || defined(__MINGW32__) if(disk_car->disk_size<=((uint64_t)1<<(28-1)) && disk_size>=((uint64_t)1<<(28-1))) { - log_warning("Hint: update Windows to support LBA48 (minimum: W2K SP4 or XP SP1)"); + log_warning("Hint: update Windows to support LBA48 (minimum: W2K SP4 or XP SP1)\n"); } #endif { @@ -686,6 +686,7 @@ static list_part_t *search_part(disk_t *disk_car, const list_part_t *list_part_o ((start.sector==7 && (start.head<=2 || fast_mode>1)) || search_location%(2048*512)==(7-1)*512)) || (disk_car->arch!=&arch_i386 && (search_location%location_boundary==(7-1)*512)) || + (disk_car->arch==&arch_gpt&& (search_location%(2048*512)==(7-1)*512)) || (disk_car->arch==&arch_none && search_location==(7-1)*512)) res=search_FAT_backup(buffer_disk,disk_car,partition,verbose,dump_ind); test_nbr++; @@ -695,6 +696,7 @@ static list_part_t *search_part(disk_t *disk_car, const list_part_t *list_part_o if((disk_car->arch==&arch_i386 && ((start.sector==13 && (start.head<=2 || fast_mode>1)) || search_location%(2048*512)==(13-1)*disk_car->sector_size)) || + (disk_car->arch==&arch_gpt&& (search_location%(2048*512)==(13-1)*512)) || (disk_car->arch!=&arch_i386 && (search_location%location_boundary==(13-1)*disk_car->sector_size))) res=search_EXFAT_backup(buffer_disk, disk_car, partition); test_nbr++; @@ -705,6 +707,7 @@ static list_part_t *search_part(disk_t *disk_car, const list_part_t *list_part_o ((start.sector==disk_car->geom.sectors_per_head && (start.head==disk_car->geom.heads_per_cylinder-1 || fast_mode>1)) || search_location%(2048*512)==(2048-1)*512)) || + (disk_car->arch==&arch_gpt&& (search_location%(2048*512)==(2048-1)*512)) || (disk_car->arch!=&arch_i386 && search_location%location_boundary==(location_boundary-512) && search_location>0)) res=search_NTFS_backup(buffer_disk,disk_car,partition,verbose,dump_ind);