diff --git a/lib/lib.pl b/lib/lib.pl index f5502b96..c854ab9f 100755 --- a/lib/lib.pl +++ b/lib/lib.pl @@ -46,14 +46,16 @@ print "\t\t*required &= present;"; print "\tcase GLIBTOP_ERROR_METHOD_WARN:"; print "\t\tglibtop_warn_r (server,"; print "\t\t\t\t_(\"glibtop_get_%s (): Client requested \""; -print "\t\t\t\t \"field mask %05Lx, but only have %05Lx.\"),"; -print "\t\t\t\t feature, old_required, present);"; +print "\t\t\t\t \"field mask %05lx, but only have %05lx.\"),"; +print "\t\t\t\t feature, (unsigned long) old_required,"; +print "\t\t\t\t (unsigned long) present);"; print "\t\tbreak;"; print "\tcase GLIBTOP_ERROR_METHOD_ABORT:"; print "\t\tglibtop_error_r (server,"; print "\t\t\t\t _(\"glibtop_get_%s (): Client requested \""; -print "\t\t\t\t \"field mask %05x, but only have %05x.\"),"; -print "\t\t\t\t feature, old_required, present);"; +print "\t\t\t\t \"field mask %05lx, but only have %05lx.\"),"; +print "\t\t\t\t feature, (unsigned long) old_required,"; +print "\t\t\t\t (unsigned long) present);"; print "\t\tbreak;"; print "\t}"; print '}';