cvs commit: src/sys/dev/ata ata-raid.c

Søren Schmidt sos at FreeBSD.org
Mon Jun 6 18:37:14 GMT 2005


On 06/06/2005, at 20:07, Nate Lawson wrote:

> Søren Schmidt wrote:
>
>> sos         2005-06-06 15:49:09 UTC
>>   FreeBSD src repository
>>   Modified files:
>>     sys/dev/ata          ata-raid.c   Log:
>>   Apply the usual woodoo for 64bitness.
>>     Revision  Changes    Path
>>   1.97      +2 -2      src/sys/dev/ata/ata-raid.c
>> Index: src/sys/dev/ata/ata-raid.c
>> diff -u src/sys/dev/ata/ata-raid.c:1.96 src/sys/dev/ata/ata-raid.c: 
>> 1.97
>> --- src/sys/dev/ata/ata-raid.c:1.96    Mon Jun  6 13:35:23 2005
>> +++ src/sys/dev/ata/ata-raid.c    Mon Jun  6 15:49:09 2005
>> @@ -3822,8 +3822,8 @@
>>      printf("revision            %.4s\n", meta->revision);
>>      printf("dummy_1             0x%08x\n", meta->dummy_1);
>>      printf("magic_0             0x%08x\n", meta->magic_0);
>> -    printf("magic_1             0x%016llx\n", meta->magic_1);
>> -    printf("magic_2             0x%016llx\n", meta->magic_2);
>> +    printf("magic_1             0x%016llx\n",(unsigned long long) 
>> meta->magic_1);
>> +    printf("magic_2             0x%016llx\n",(unsigned long long) 
>> meta->magic_2);
>>      printf("flags               0x%02x\n", meta->flags);
>>      printf("array_width         %d\n", meta->array_width);
>>      printf("total_disks         %d\n", meta->total_disks);
>>
>
> I think %jx is preferred to a cast.

I think I prefer the style of the rest of ATA.

- Søren





More information about the cvs-src mailing list