[OpenBIOS] [PATCH] Fix mac label whole partition case

Tarl Neustaedter tarl-b2 at tarl.net
Sat Feb 23 22:43:01 CET 2013


On 2013-Feb-23 11:54 , Mark Cave-Ayland wrote:
>>
>> +    if (str == NULL || parnum == 0) {
>>           /* According to the spec, partition 0 as well as no 
>> arguments means the whole disk */
>>           offs = (long long)0;
>>           size = (long long)__be32_to_cpu(dmap.sbBlkCount) * bs;
>
> Strangely this works for me if I build with -O0 -g but not with the 
> default of -Os -g. Investigating...
>

Aren't there parens missing? I.e., shouldn't that be ((str == NULL) || 
(parnum == 0))?




More information about the OpenBIOS mailing list