mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
tools lib api fs: No need to use PATH_MAX + 1
Because there's no point, PATH_MAX is big enough. Signed-off-by: Jiri Olsa <[email protected]> Cc: David Ahern <[email protected]> Cc: Don Zickus <[email protected]> Cc: Kan Liang <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
e3b0ac1b7a
commit
ccb5597f9b
2 changed files with 4 additions and 4 deletions
|
|
@ -69,7 +69,7 @@ static const char * const tracefs__known_mountpoints[] = {
|
|||
struct fs {
|
||||
const char *name;
|
||||
const char * const *mounts;
|
||||
char path[PATH_MAX + 1];
|
||||
char path[PATH_MAX];
|
||||
bool found;
|
||||
long magic;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@
|
|||
#include "tracing_path.h"
|
||||
|
||||
|
||||
char tracing_mnt[PATH_MAX + 1] = "/sys/kernel/debug";
|
||||
char tracing_path[PATH_MAX + 1] = "/sys/kernel/debug/tracing";
|
||||
char tracing_events_path[PATH_MAX + 1] = "/sys/kernel/debug/tracing/events";
|
||||
char tracing_mnt[PATH_MAX] = "/sys/kernel/debug";
|
||||
char tracing_path[PATH_MAX] = "/sys/kernel/debug/tracing";
|
||||
char tracing_events_path[PATH_MAX] = "/sys/kernel/debug/tracing/events";
|
||||
|
||||
|
||||
static void __tracing_path_set(const char *tracing, const char *mountpoint)
|
||||
|
|
|
|||
Loading…
Reference in a new issue