From: green Date: Tue, 16 Nov 2004 09:53:00 +0000 (+0000) Subject: b=5149 X-Git-Tag: 1.3.4~323 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=537f861373e7f35f7696802492a7892cbb384ccf;p=fs%2Flustre-release.git 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. --- 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; }