second: Fix typo'd operator
PATCH v2 4/5 second: Fix typo'd operator
Note that this does change the behavior of the code. After the patch only < 2.6 PROMs will fail (which is probably correct), instead of every 2.* like now.
Signed-off-by Matt Turner <[email protected]>
--- second/disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
second/disk.c +1 -1
@@ -293,7 +293,7 @@ int silo_disk_read(char *buff, int size, unsigned long long offset)if (!net) {if (prom_vers !=PROM_P1275 ) {if (((romvec->pv_printrev >>16 ) <2 || - ((romvec->pv_printrev >>16 ) =2 && (romvec->pv_printrev &&0xffff ) <6 )) + ((romvec->pv_printrev >>16 ) =2 && (romvec->pv_printrev &0xffff ) <6 )) && offset >=0x40000000 ) {printf ("Buggy old PROMs don't allow reading past 1GB from start of the disk. Send complaints to SMCC\n" );return -1 ;
Signature · 1 line
2.26.2