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:
Kenneth J Davis 2012-01-16 15:57:14 +00:00
parent d6ff7e86e3
commit 06ddb06931

View File

@ -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,
struct CHS *pEntry_chs)
{
if (!InitKernelConfig.ForceLBA)
{
printf("WARNING: using suspect partition %s FS %02x:", partitionName, fs);
printCHS(" with calculated values ", chs);
printCHS(" instead of ", pEntry_chs);
printf("\n");
}
memcpy(pEntry_chs, chs, sizeof(struct CHS));
}