License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / kernel / trace / trace_functions_graph.c
index d56123cdcc89027ee5841cf6573de474b38ebb39..23c0b0cb5fb95c9875fb35cbd0d22f027430343c 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  *
  * Function graph tracer.
@@ -1543,7 +1544,7 @@ fs_initcall(init_graph_tracefs);
 
 static __init int init_graph_trace(void)
 {
-       max_bytes_for_cpu = snprintf(NULL, 0, "%d", nr_cpu_ids - 1);
+       max_bytes_for_cpu = snprintf(NULL, 0, "%u", nr_cpu_ids - 1);
 
        if (!register_trace_event(&graph_trace_entry_event)) {
                pr_warn("Warning: could not register graph trace events\n");