]> err.no Git - linux-2.6/blobdiff - fs/cifs/cifs_debug.c
Merge branch 'parisc' from /home/kyle/repos/parisc-2.6.git
[linux-2.6] / fs / cifs / cifs_debug.c
index 2f55edf2eeea1ef5b7fe5f93297fcdd45792cf47..6017c465440eaef7299e60632b0f03b71dcbffe4 100644 (file)
@@ -143,8 +143,8 @@ cifs_debug_data_read(char *buf, char **beginBuffer, off_t offset,
                ses = list_entry(tmp, struct cifsSesInfo, cifsSessionList);
                if((ses->serverDomain == NULL) || (ses->serverOS == NULL) ||
                   (ses->serverNOS == NULL)) {
-                       buf += sprintf("\nentry for %s not fully displayed\n\t",
-                                       ses->serverName);
+                       buf += sprintf(buf, "\nentry for %s not fully "
+                                       "displayed\n\t", ses->serverName);
                        
                } else {
                        length =
@@ -889,7 +889,7 @@ security_flags_write(struct file *file, const char __user *buffer,
        }
 
        if(flags & ~CIFSSEC_MASK) {
-               cERROR(1,("attempt to set unsupported security flags 0x%d",
+               cERROR(1,("attempt to set unsupported security flags 0x%x",
                        flags & ~CIFSSEC_MASK));
                return -EINVAL;
        }