summarylogtreecommitdiffstats
path: root/4.3-kolasa-seq_printf.patch
blob: 4b1a3b9b266e55f456500b42234f282c7d5270b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- 15.11/common/lib/modules/fglrx/build_mod/firegl_public.c	2015-11-08 18:11:43.177831390 +0100
+++ 15.11b/common/lib/modules/fglrx/build_mod/firegl_public.c	2015-11-08 18:23:11.599197785 +0100
@@ -559,7 +559,12 @@
     *start = buf;  // For ProcFS: inform procfs that we start output at the beginning of the buffer
     *eof = 1;
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0)
     len = snprintf(buf, request, "%d\n", major);
+#else
+    seq_printf(m, "%d\n", major);
+    len = 0;
+#endif
 
     KCL_DEBUG1(FN_FIREGL_PROC, "return len=%i\n",len);