Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DIO 5ch TTL a
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC DIO 5ch TTL a
Commits
848add07
Commit
848add07
authored
Oct 13, 2020
by
Maciej Lipinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update format of timestamp printf to be more readable and user-friendly
parent
0c77342d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
wr-dio-cmd.c
sw/tools/wr-dio-cmd.c
+1
-1
No files found.
sw/tools/wr-dio-cmd.c
View file @
848add07
...
...
@@ -248,7 +248,7 @@ static int scan_stamp(int argc, char **argv, int ismask)
return
-
1
;
}
for
(
i
=
0
;
i
<
cmd
->
nstamp
;
i
++
)
printf
(
"ch %i, %9li.%09li
, leap second 0x%04X, leap second valid %01x, flag59 %01x, flag61 %01x
\n
"
,
cmd
->
channel
,
printf
(
"ch %i, %9li.%09li
(leap second: value=%d, valid=%01x, flag59=%01x, flag61=%01x)
\n
"
,
cmd
->
channel
,
(
long
)
cmd
->
t
[
i
].
tv_sec
,
cmd
->
t
[
i
].
tv_nsec
,
cmd
->
wr_ts_info_buf
[
i
].
leap_second
,
cmd
->
wr_ts_info_buf
[
i
].
leap_second_valid
,
cmd
->
wr_ts_info_buf
[
i
].
flag59
,
cmd
->
wr_ts_info_buf
[
i
].
flag61
);
}
...
...
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