Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363310
b: refs/heads/master
c: 6d8a94e
h: refs/heads/master
v: v3
  • Loading branch information
Chen Gang authored and Greg Kroah-Hartman committed Mar 11, 2013
1 parent 232ff71 commit e350376
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: acb84e9ec213a51578a00cdf14650610c174ef9b
refs/heads/master: 6d8a94e67f0448f11279eee27d3b0ede06ba07d7
11 changes: 8 additions & 3 deletions trunk/drivers/staging/sep/sep_trace_events.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@
*/
#include <linux/tracepoint.h>

/*
* Since use str*cpy in header file, better to include string.h, directly.
*/
#include <linux/string.h>

/*
* The TRACE_EVENT macro is broken up into 5 parts.
*
Expand Down Expand Up @@ -97,7 +102,7 @@ TRACE_EVENT(sep_func_start,
),

TP_fast_assign(
strncpy(__entry->name, name, 20);
strlcpy(__entry->name, name, 20);
__entry->branch = branch;
),

Expand All @@ -116,7 +121,7 @@ TRACE_EVENT(sep_func_end,
),

TP_fast_assign(
strncpy(__entry->name, name, 20);
strlcpy(__entry->name, name, 20);
__entry->branch = branch;
),

Expand All @@ -135,7 +140,7 @@ TRACE_EVENT(sep_misc_event,
),

TP_fast_assign(
strncpy(__entry->name, name, 20);
strlcpy(__entry->name, name, 20);
__entry->branch = branch;
),

Expand Down

0 comments on commit e350376

Please sign in to comment.