projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix char cpu name
[lttv.git]
/
ltt
/
branches
/
poly
/
ltt
/
tracefile.c
diff --git
a/ltt/branches/poly/ltt/tracefile.c
b/ltt/branches/poly/ltt/tracefile.c
index 0f72957c4c0982065885a709cd1841e7f34c89dc..6b027c4fc02182249a4af874bcc8f9494df1f4f8 100644
(file)
--- a/
ltt/branches/poly/ltt/tracefile.c
+++ b/
ltt/branches/poly/ltt/tracefile.c
@@
-542,6
+542,8
@@
int get_tracefile_name_number(const gchar *raw_name,
strncpy(char_name, raw_name, underscore_pos);
strncpy(char_name, raw_name, underscore_pos);
+ char_name[underscore_pos] = '\0';
+
*name = g_quark_from_string(char_name);
*num = cpu_num;
*name = g_quark_from_string(char_name);
*num = cpu_num;
@@
-609,21
+611,21
@@
gboolean ltt_tracefile_group_has_cpu_online(gpointer data)
* A tracefile group is simply an array where all the per cpu tracefiles sits.
*/
* A tracefile group is simply an array where all the per cpu tracefiles sits.
*/
-static int open_tracefiles(LttTrace *trace, char *root_path,
- char *relative_path)
+static int open_tracefiles(LttTrace *trace,
g
char *root_path,
+
g
char *relative_path)
{
DIR *dir = opendir(root_path);
struct dirent *entry;
struct stat stat_buf;
int ret;
{
DIR *dir = opendir(root_path);
struct dirent *entry;
struct stat stat_buf;
int ret;
- char path[PATH_MAX];
+
g
char path[PATH_MAX];
int path_len;
int path_len;
- char *path_ptr;
+
g
char *path_ptr;
int rel_path_len;
int rel_path_len;
- char rel_path[PATH_MAX];
- char *rel_path_ptr;
+
g
char rel_path[PATH_MAX];
+
g
char *rel_path_ptr;
LttTracefile tmp_tf;
if(dir == NULL) {
LttTracefile tmp_tf;
if(dir == NULL) {
This page took
0.0230050000000001 seconds
and
4
git commands to generate.