Date: Sun, 23 Apr 2006 23:02:14 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 95958 for review Message-ID: <200604232302.k3NN2E3U043270@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95958 Change 95958 by jb@jb_freebsd2 on 2006/04/23 23:01:28 Don't try to un-const-ise a string. gcc really does like that. There is a mismatch between the type we use for curthread. Just comment that out for now. Affected files ... .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_util.c#3 edit Differences ... ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_util.c#3 (text+ko) ==== @@ -84,12 +84,14 @@ static void dtrace_errdebug(const char *str) { - int hval = dtrace_hash_str((char *)str) % DTRACE_ERRHASHSZ; + int hval = dtrace_hash_str(str) % DTRACE_ERRHASHSZ; int occupied = 0; mutex_enter(&dtrace_errlock); dtrace_errlast = str; +#if defined(sun) dtrace_errthread = curthread; +#endif while (occupied++ < DTRACE_ERRHASHSZ) { if (dtrace_errhash[hval].dter_msg == str) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604232302.k3NN2E3U043270>