From: Andrew Morton Cc: Steven French Cc: Signed-off-by: Andrew Morton --- fs/cifs/cifs_debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN fs/cifs/cifs_debug.c~cifs-sprintf-fix fs/cifs/cifs_debug.c --- a/fs/cifs/cifs_debug.c~cifs-sprintf-fix +++ a/fs/cifs/cifs_debug.c @@ -143,8 +143,8 @@ cifs_debug_data_read(char *buf, char **b 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 = _