Date: Tue, 30 Jun 2009 20:08:39 GMT From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 165483 for review Message-ID: <200906302008.n5UK8dFB064885@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=165483 Change 165483 by trasz@trasz_victim on 2009/06/30 20:08:13 Remove comma (",") from the end of the returned strings. Affected files ... .. //depot/projects/soc2009/trasz_limits/sys/kern/kern_hrl.c#23 edit Differences ... ==== //depot/projects/soc2009/trasz_limits/sys/kern/kern_hrl.c#23 (text+ko) ==== @@ -713,6 +713,8 @@ else sbuf_printf(sb, ","); } + if (sbuf_len(sb) > 0) + sbuf_setpos(sb, sbuf_len(sb) - 1); return (sb); } @@ -845,6 +847,7 @@ sbuf_printf(sb, "%s=%jd,", hrl_resource_name(i), usage->hu_resources[i]); } + sbuf_setpos(sb, sbuf_len(sb) - 1); return (sb); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906302008.n5UK8dFB064885>