cifs: Standardize logging output
[linux-2.6-microblaze.git] / fs / cifs / dfs_cache.c
index a67f88b..df81c71 100644 (file)
@@ -198,7 +198,7 @@ static ssize_t dfscache_proc_write(struct file *file, const char __user *buffer,
        if (c != '0')
                return -EINVAL;
 
-       cifs_dbg(FYI, "clearing dfs cache");
+       cifs_dbg(FYI, "clearing dfs cache\n");
 
        down_write(&htable_rw_lock);
        flush_cache_ents();
@@ -234,8 +234,8 @@ static inline void dump_tgts(const struct cache_entry *ce)
 
 static inline void dump_ce(const struct cache_entry *ce)
 {
-       cifs_dbg(FYI, "cache entry: path=%s,type=%s,ttl=%d,etime=%ld,"
-                "interlink=%s,path_consumed=%d,expired=%s\n", ce->path,
+       cifs_dbg(FYI, "cache entry: path=%s,type=%s,ttl=%d,etime=%ld,interlink=%s,path_consumed=%d,expired=%s\n",
+                ce->path,
                 ce->srvtype == DFS_TYPE_ROOT ? "root" : "link", ce->ttl,
                 ce->etime.tv_nsec,
                 IS_INTERLINK_SET(ce->flags) ? "yes" : "no",
@@ -453,11 +453,11 @@ static void remove_oldest_entry(void)
        }
 
        if (!to_del) {
-               cifs_dbg(FYI, "%s: no entry to remove", __func__);
+               cifs_dbg(FYI, "%s: no entry to remove\n", __func__);
                return;
        }
 
-       cifs_dbg(FYI, "%s: removing entry", __func__);
+       cifs_dbg(FYI, "%s: removing entry\n", __func__);
        dump_ce(to_del);
        flush_cache_ent(to_del);
 }
@@ -696,8 +696,8 @@ static int __dfs_cache_find(const unsigned int xid, struct cifs_ses *ses,
        }
 
        if (atomic_read(&cache_count) >= CACHE_MAX_ENTRIES) {
-               cifs_dbg(FYI, "%s: reached max cache size (%d)", __func__,
-                        CACHE_MAX_ENTRIES);
+               cifs_dbg(FYI, "%s: reached max cache size (%d)\n",
+                        __func__, CACHE_MAX_ENTRIES);
                down_write(&htable_rw_lock);
                remove_oldest_entry();
                up_write(&htable_rw_lock);