>Number:         169540
>Category:       kern
>Synopsis:       [PATCH] Fix clang buildworld: dt_consume.c long long
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 29 12:20:13 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     William Grzybowski
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:

        Following r237716 there is one more place to fix long long cast.
        This should fix clang buildworld.

>How-To-Repeat:
>Fix:

        See attached patch


--- dt_consume_clang.patch begins here ---
Index: cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c
===================================================================
--- cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c  (revision 
237773)
+++ cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c  (working copy)
@@ -796,7 +796,7 @@
                return (0);
 
        assert(last_bin == bin);
-       (void) snprintf(c, sizeof (c), ">= %lld", value);
+       (void) snprintf(c, sizeof (c), ">= %lld", (long long)value);
 
        if (dt_printf(dtp, fp, "%16s ", c) < 0)
                return (-1);
--- dt_consume_clang.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to