Merge of 64-bit printf warning fixes.
[samba.git] / source3 / smbd / statcache.c
index 76406f208e52209411bea901fd1ba91712c6bb0d..d996f5e4938e1b1dda0c3961be98cef98a59a22a 100644 (file)
@@ -119,8 +119,8 @@ void stat_cache_add( const char *full_orig_name, const char *orig_translated_pat
 
        if (original_path_length != translated_path_length) {
                if (original_path_length < translated_path_length) {
-                       DEBUG(0, ("OOPS - tried to store stat cache entry for weird length paths [%s] %u and [%s] %u)!\n",
-                                               original_path, original_path_length, translated_path, translated_path_length));
+                       DEBUG(0, ("OOPS - tried to store stat cache entry for weird length paths [%s] %lu and [%s] %lu)!\n",
+                                 original_path, (unsigned long)original_path_length, translated_path, (unsigned long)translated_path_length));
                        SAFE_FREE(original_path);
                        SAFE_FREE(translated_path);
                        return;