[so2] [Linux][Tema1] Warnings

Mihail Costea mihail.costea90 at gmail.com
Sat Mar 16 22:25:39 EET 2013


>> /root/tema1/sci.c: In function ‘sci_interceptor’:
>> /root/tema1/sci.c:90: warning: format ‘%lx’ expects type ‘long
>> unsigned int’, but argument 3 has type ‘int’
>> /root/tema1/sci.c:90: warning: format ‘%lx’ expects type ‘long
>> unsigned int’, but argument 10 has type ‘int’
>> /root/tema1/sci.c:96: warning: format ‘%lx’ expects type ‘long
>> unsigned int’, but argument 3 has type ‘int’
>> /root/tema1/sci.c:96: warning: format ‘%lx’ expects type ‘long
>> unsigned int’, but argument 10 has type ‘int’
>
> Dacă e vorba de macro-ul log_syscall, sigur nu poți rezolva schimbând
> tipul parametrilor?  Pare aici (long shot, dar _pare_) că parametrul
> pentru syscall și cel pentru ret sunt 'int'.  Dacă îi declari long, mai
> ai warning-uri?
>
> Thanks,
> Vlad
> _______________________________________________
> http://ocw.cs.pub.ro/courses/so2/resurse/lista-discutii

Scuze am uitat de tot de acest post.
Salut, da trebuie si alea long. Asa s-a rezolvat problema.

Multumesc,
Mihail


More information about the so2 mailing list