[Freeipa-devel] [PATCH] Fix format string typo
Sumit Bose
sbose at redhat.com
Fri Jun 7 16:20:57 UTC 2013
On Tue, Jun 04, 2013 at 10:56:59AM +0200, Sumit Bose wrote:
> On Tue, Jun 04, 2013 at 10:49:45AM +0200, Petr Viktorin wrote:
> > On 06/03/2013 03:41 PM, Martin Kosek wrote:
> > >On 06/03/2013 03:39 PM, Sumit Bose wrote:
> > >>Hi,
> > >>
> > >>this patch just fixes a typo.
> > >>
> > >>bye,
> > >>Sumit
> > >>
> > >
> > >Obvious ACK. Pushed to master, ipa-3-2.
> > >
> > >Martin
> >
> > Is the patch really right? It caused a new compiler warning:
> >
> > format '%lu' expects argument of type 'long unsigned int', but
> > argument 6 has type 'uint32_t' [-Wformat=]
>
> ah, sorry, I didn't check the compiler output carefully enough, I'll
> send a fix.
sorry, for the delay, fix attached.
bye,
Sumit
>
> bye,
> Sumit
> >
> > --
> > Petr³
>
> _______________________________________________
> Freeipa-devel mailing list
> Freeipa-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/freeipa-devel
-------------- next part --------------
From 1bbf2626a0ef5c127b35e700e7eb2e2feec6659e Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose at redhat.com>
Date: Fri, 7 Jun 2013 18:17:55 +0200
Subject: [PATCH] Fix type of printf argument
---
daemons/ipa-slapi-plugins/ipa-sidgen/ipa_sidgen_common.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/daemons/ipa-slapi-plugins/ipa-sidgen/ipa_sidgen_common.c b/daemons/ipa-slapi-plugins/ipa-sidgen/ipa_sidgen_common.c
index fafc55a497620024e45186b48ed84029e273f5ef..6f784804cd39acdf88ceceb0e21b272a04fa13fc 100644
--- a/daemons/ipa-slapi-plugins/ipa-sidgen/ipa_sidgen_common.c
+++ b/daemons/ipa-slapi-plugins/ipa-sidgen/ipa_sidgen_common.c
@@ -518,7 +518,8 @@ int find_sid_for_ldap_entry(struct slapi_entry *entry,
ret = find_sid_for_id(id, plugin_id, base_dn, dom_sid, ranges, &sid);
if (ret != 0) {
- LOG_FATAL("Cannot convert Posix ID [%lu] into an unused SID.\n", id);
+ LOG_FATAL("Cannot convert Posix ID [%lu] into an unused SID.\n",
+ (unsigned long) id);
goto done;
}
--
1.8.1.4
More information about the Freeipa-devel
mailing list