open-hpi / openhpi

Other
7 stars 10 forks source link

wrong formats for printf arguments #1471

Open mohandev2 opened 15 years ago

mohandev2 commented 15 years ago

The debug output in function handle_saHpiDomainInfoActiveEntries() (saHpiDomainInfoTable.c, line 353) uses %d format for an u_long argument while it should be using %ld.

Reported by: sharkcz

Original Ticket: openhpi/bugs/1471

mohandev2 commented 15 years ago

It requires net-snmp 5.5 to get broken builds after a combination of compiler warning and -Werror.

Original comment by: sharkcz

mohandev2 commented 15 years ago

fix format openhpi-subagent-2.3.4-format.patch.txt

Original comment by: sharkcz

mohandev2 commented 15 years ago

There are multiple problems with the format and argument pairs, see the patch for details.

Original comment by: sharkcz

mohandev2 commented 15 years ago

Original comment by: sharkcz