Fixup a bunch of printf-style functions and debugs to use unsigned long when
[kai/samba.git] / source3 / passdb / passdb.c
index 9a99e07d8289c5ec1ab19866010b9c8053221647..966875785cd10a09e284ac2e2a4cf841aaed1afb 100644 (file)
@@ -1056,7 +1056,7 @@ DOM_SID *local_uid_to_sid(DOM_SID *psid, uid_t uid)
        unix_pw = sys_getpwuid( uid );
 
        if ( !unix_pw ) {
-               DEBUG(4,("local_uid_to_sid: host has know idea of uid %d\n", uid));
+               DEBUG(4,("local_uid_to_sid: host has know idea of uid %lu\n", (unsigned long)uid));
                return NULL;
        }
        
@@ -1072,8 +1072,8 @@ DOM_SID *local_uid_to_sid(DOM_SID *psid, uid_t uid)
        if ( ret )
                sid_copy( psid, pdb_get_user_sid(sampw) );
        else {
-               DEBUG(4,("local_uid_to_sid: User %s [uid == %d] has no samba account\n",
-                       unix_pw->pw_name, uid));
+               DEBUG(4,("local_uid_to_sid: User %s [uid == %lu] has no samba account\n",
+                       unix_pw->pw_name, (unsigned long)uid));
                        
                if ( !lp_enable_rid_algorithm() ) 
                        return NULL;