From 537f861373e7f35f7696802492a7892cbb384ccf Mon Sep 17 00:00:00 2001 From: green Date: Tue, 16 Nov 2004 09:53:00 +0000 Subject: [PATCH] b=5149 r=adilger Update printing of pid in portals_id2str to print in correct place with correct limit. Also updated format string to match comments elsewhere. --- lnet/libcfs/debug.c | 2 +- lustre/portals/libcfs/debug.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lnet/libcfs/debug.c b/lnet/libcfs/debug.c index f571958..53f15d2 100644 --- a/lnet/libcfs/debug.c +++ b/lnet/libcfs/debug.c @@ -288,7 +288,7 @@ char *portals_id2str(int nal, ptl_process_id_t id, char *str) portals_nid2str(nal, id.nid, str); len = strlen(str); - snprintf(str + len, PTL_NALFMT_SIZE, "-%u", id.pid); + snprintf(str + len, PTL_NALFMT_SIZE - len, ",%u", id.pid); return str; } diff --git a/lustre/portals/libcfs/debug.c b/lustre/portals/libcfs/debug.c index f571958..53f15d2 100644 --- a/lustre/portals/libcfs/debug.c +++ b/lustre/portals/libcfs/debug.c @@ -288,7 +288,7 @@ char *portals_id2str(int nal, ptl_process_id_t id, char *str) portals_nid2str(nal, id.nid, str); len = strlen(str); - snprintf(str + len, PTL_NALFMT_SIZE, "-%u", id.pid); + snprintf(str + len, PTL_NALFMT_SIZE - len, ",%u", id.pid); return str; } -- 1.8.3.1