Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Shane Snyder
darshan
Commits
ac6c6442
Commit
ac6c6442
authored
Jan 22, 2016
by
Shane Snyder
Browse files
bug fix in darshan put_header routine
parent
d3ebeb50
Changes
1
Show whitespace changes
Inline
Side-by-side
darshan-util/darshan-logutils.c
View file @
ac6c6442
...
...
@@ -967,10 +967,9 @@ static int darshan_log_putheader(darshan_fd fd)
header
.
magic_nr
=
DARSHAN_MAGIC_NR
;
header
.
comp_type
=
fd
->
comp_type
;
header
.
partial_flag
=
fd
->
partial_flag
;
/* copy the mapping information to the header */
memcpy
(
&
header
.
rec_map
,
&
fd
->
rec_map
,
sizeof
(
struct
darshan_log_map
));
memcpy
(
&
header
.
mod_map
,
&
fd
->
mod_map
,
DARSHAN_MAX_MODS
*
sizeof
(
struct
darshan_log_map
));
memcpy
(
header
.
mod_map
,
fd
->
mod_map
,
DARSHAN_MAX_MODS
*
sizeof
(
struct
darshan_log_map
));
memcpy
(
header
.
mod_ver
,
fd
->
mod_ver
,
DARSHAN_MAX_MODS
*
sizeof
(
uint32_t
));
/* write header to file */
ret
=
darshan_log_write
(
fd
,
&
header
,
sizeof
(
header
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment