mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-27 15:54:06 +02:00
Do not display CHS warning during booting when FORCELBA enabled - patch from Pete Batard.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1697 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
d6ff7e86e3
commit
06ddb06931
@ -809,11 +809,14 @@ BOOL is_suspect(struct CHS *chs, struct CHS *pEntry_chs)
|
|||||||
|
|
||||||
void print_warning_suspect(char *partitionName, UBYTE fs, struct CHS *chs,
|
void print_warning_suspect(char *partitionName, UBYTE fs, struct CHS *chs,
|
||||||
struct CHS *pEntry_chs)
|
struct CHS *pEntry_chs)
|
||||||
|
{
|
||||||
|
if (!InitKernelConfig.ForceLBA)
|
||||||
{
|
{
|
||||||
printf("WARNING: using suspect partition %s FS %02x:", partitionName, fs);
|
printf("WARNING: using suspect partition %s FS %02x:", partitionName, fs);
|
||||||
printCHS(" with calculated values ", chs);
|
printCHS(" with calculated values ", chs);
|
||||||
printCHS(" instead of ", pEntry_chs);
|
printCHS(" instead of ", pEntry_chs);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
}
|
||||||
memcpy(pEntry_chs, chs, sizeof(struct CHS));
|
memcpy(pEntry_chs, chs, sizeof(struct CHS));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user