From: Amir Shehata <[email protected]> The function cfs_cpt_table_print() was adding two spaces to the string buffer. Just add it once.
Signed-off-by: Amir Shehata <[email protected]> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7734 Reviewed-on: http://review.whamcloud.com/18916 Reviewed-by: Olaf Weber <[email protected]> Reviewed-by: Doug Oucharek <[email protected]> Reviewed-by: Oleg Drokin <[email protected]> Signed-off-by: James Simmons <[email protected]> --- drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c b/drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c index d207ae5..b2a88ef 100644 --- a/drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c +++ b/drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c @@ -147,7 +147,7 @@ struct cfs_cpt_table * for (i = 0; i < cptab->ctb_nparts; i++) { if (len > 0) { - rc = snprintf(tmp, len, "%d\t: ", i); + rc = snprintf(tmp, len, "%d\t:", i); len -= rc; } -- 1.8.3.1 _______________________________________________ devel mailing list [email protected] http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
