Module Name:    src
Committed By:   riastradh
Date:           Sun Dec 19 12:22:03 UTC 2021

Modified Files:
        src/sys/external/bsd/drm2/include/linux: nbsd-namespace.h

Log Message:
drm: Knuckle under and define sprintf in nbsd-namespace.h.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
    src/sys/external/bsd/drm2/include/linux/nbsd-namespace.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/include/linux/nbsd-namespace.h
diff -u src/sys/external/bsd/drm2/include/linux/nbsd-namespace.h:1.3 src/sys/external/bsd/drm2/include/linux/nbsd-namespace.h:1.4
--- src/sys/external/bsd/drm2/include/linux/nbsd-namespace.h:1.3	Sun Dec 19 09:59:22 2021
+++ src/sys/external/bsd/drm2/include/linux/nbsd-namespace.h	Sun Dec 19 12:22:03 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: nbsd-namespace.h,v 1.3 2021/12/19 09:59:22 riastradh Exp $	*/
+/*	$NetBSD: nbsd-namespace.h,v 1.4 2021/12/19 12:22:03 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -46,4 +46,7 @@
 /* Disable our historic malloc(9) compatibility macro.  */
 #undef	free
 
+/* This should not appear in NetBSD code -- we do not sprintf!  */
+#define	sprintf(BUF, FMT, ARGS...)	snprintf(BUF, SIZE_MAX, FMT, ##ARGS)
+
 #endif  /* _LINUX_NBSD_NAMESPACE_H_ */

Reply via email to