mirror of https://gitee.com/openkylin/linux.git
staging: lustre: obd: add newline for dumped config record
The function class_config_parse_rec() parses the llog record and places it into a buffer to be returned. That buffer needs to end with a newline which is currently missing. Signed-off-by: Amir Shehata <amir.shehata@intel.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2149 Reviewed-on: http://review.whamcloud.com/4254 Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com> Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Signed-off-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b828b9cac7
commit
c4ab96e7ca
|
@ -1349,6 +1349,7 @@ static int class_config_parse_rec(struct llog_rec_hdr *rec, char *buf,
|
|||
lustre_cfg_string(lcfg, i));
|
||||
}
|
||||
}
|
||||
ptr += snprintf(ptr, end - ptr, "\n");
|
||||
/* return consumed bytes */
|
||||
rc = ptr - buf;
|
||||
return rc;
|
||||
|
|
Loading…
Reference in New Issue