Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
6ec2915f
Commit
6ec2915f
authored
May 11, 2009
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
printf format for size_t changed to %zd
parent
ed5f10da
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
14 deletions
+14
-14
src/lib/rt/src/rt_hash.c
src/lib/rt/src/rt_hash.c
+3
-3
wb/lib/wb/src/wb_db.cpp
wb/lib/wb/src/wb_db.cpp
+1
-1
wb/lib/wb/src/wb_dbs.cpp
wb/lib/wb/src/wb_dbs.cpp
+2
-2
xtt/lib/ge/src/ge_graph_journal.cpp
xtt/lib/ge/src/ge_graph_journal.cpp
+8
-8
No files found.
src/lib/rt/src/rt_hash.c
View file @
6ec2915f
...
...
@@ -413,9 +413,9 @@ hash_Print (
ghtp
=
htp
->
ghtp
;
printf
(
" size............: %
l
d
\n
"
,
ghtp
->
size
);
printf
(
" key_size........: %
l
d
\n
"
,
ghtp
->
key_size
);
printf
(
" record_size.....: %
l
d
\n
"
,
ghtp
->
record_size
);
printf
(
" size............: %
z
d
\n
"
,
ghtp
->
size
);
printf
(
" key_size........: %
z
d
\n
"
,
ghtp
->
key_size
);
printf
(
" record_size.....: %
z
d
\n
"
,
ghtp
->
record_size
);
printf
(
" key_offset......: %d
\n
"
,
(
int
)
ghtp
->
key_offset
);
printf
(
" link_offset.....: %d
\n
"
,
(
int
)
ghtp
->
link_offset
);
printf
(
" key_type........: %d
\n
"
,
ghtp
->
key_type
);
...
...
wb/lib/wb/src/wb_db.cpp
View file @
6ec2915f
...
...
@@ -989,7 +989,7 @@ static void printstat(DbEnv *ep, const char *s)
printf
(
" nconflicts...: %d
\n
"
,
lp
->
st_nconflicts
);
#endif
printf
(
" ndeadlocks...: %d
\n
"
,
lp
->
st_ndeadlocks
);
printf
(
" regsize......: %
l
d
\n
"
,
lp
->
st_regsize
);
printf
(
" regsize......: %
z
d
\n
"
,
lp
->
st_regsize
);
printf
(
" region_wait..: %d
\n
"
,
lp
->
st_region_wait
);
printf
(
" region_nowait: %d
\n
"
,
lp
->
st_region_nowait
);
printf
(
"
\n
"
);
...
...
wb/lib/wb/src/wb_dbs.cpp
View file @
6ec2915f
...
...
@@ -827,7 +827,7 @@ wb_dbs::importDbody(pwr_tOid oid, size_t size, void *body)
}
if
(
oep
->
dbody
.
size
==
0
)
{
if
(
size
!=
0
)
printf
(
"error dbody size %
l
d %s
\n
"
,
size
,
cdh_ObjidToString
(
0
,
oid
,
0
));
if
(
size
!=
0
)
printf
(
"error dbody size %
z
d %s
\n
"
,
size
,
cdh_ObjidToString
(
0
,
oid
,
0
));
return
true
;
}
...
...
@@ -885,7 +885,7 @@ wb_dbs::importRbody(pwr_tOid oid, size_t size, void *body)
getAliasServer
(
oep
,
body
);
if
(
oep
->
rbody
.
size
==
0
)
{
if
(
size
!=
0
)
printf
(
"error rbody size %
l
d %s
\n
"
,
size
,
cdh_ObjidToString
(
0
,
oid
,
0
));
if
(
size
!=
0
)
printf
(
"error rbody size %
z
d %s
\n
"
,
size
,
cdh_ObjidToString
(
0
,
oid
,
0
));
return
true
;
}
...
...
xtt/lib/ge/src/ge_graph_journal.cpp
View file @
6ec2915f
...
...
@@ -228,7 +228,7 @@ int GraphJournal::store( journal_eAction action, grow_tObject o)
lock_object
=
0
;
if
(
debug
)
printf
(
"Store(F)x: %3d list: %3
l
d undo: %10d redo: %10d
\n
"
,
current_idx
-
1
,
poslist
.
size
()
-
1
,
printf
(
"Store(F)x: %3d list: %3
z
d undo: %10d redo: %10d
\n
"
,
current_idx
-
1
,
poslist
.
size
()
-
1
,
(
int
)
poslist
[
poslist
.
size
()
-
1
].
undo_pos
,
(
int
)
poslist
[
poslist
.
size
()
-
1
].
redo_pos
);
}
...
...
@@ -252,7 +252,7 @@ int GraphJournal::store( journal_eAction action, grow_tObject o)
while
(
(
int
)
poslist
.
size
()
>
current_idx
)
{
if
(
debug
)
printf
(
"Remove %
l
d
\n
"
,
poslist
.
size
()
-
1
);
printf
(
"Remove %
z
d
\n
"
,
poslist
.
size
()
-
1
);
poslist
.
pop_back
();
}
...
...
@@ -285,7 +285,7 @@ int GraphJournal::store( journal_eAction action, grow_tObject o)
while
(
(
int
)
poslist
.
size
()
>
current_idx
)
{
if
(
debug
)
printf
(
"Remove %
l
d
\n
"
,
poslist
.
size
()
-
1
);
printf
(
"Remove %
z
d
\n
"
,
poslist
.
size
()
-
1
);
poslist
.
pop_back
();
}
...
...
@@ -375,7 +375,7 @@ int GraphJournal::store( journal_eAction action, grow_tObject o)
current_idx
++
;
if
(
debug
)
printf
(
"Store idx: %3d list: %3
l
d undo: %10d redo: %10d
\n
"
,
current_idx
-
1
,
poslist
.
size
()
-
1
,
printf
(
"Store idx: %3d list: %3
z
d undo: %10d redo: %10d
\n
"
,
current_idx
-
1
,
poslist
.
size
()
-
1
,
(
int
)
poslist
[
poslist
.
size
()
-
1
].
undo_pos
,
(
int
)
poslist
[
poslist
.
size
()
-
1
].
redo_pos
);
return
GE__SUCCESS
;
...
...
@@ -398,7 +398,7 @@ int GraphJournal::store( journal_eAction action, grow_tObject o)
while
(
(
int
)
poslist
.
size
()
>
current_idx
)
{
if
(
debug
)
printf
(
"Remov idx: %3d list: %3
l
d undo: %10d redo: %10d
\n
"
,
0
,
poslist
.
size
()
-
1
,
printf
(
"Remov idx: %3d list: %3
z
d undo: %10d redo: %10d
\n
"
,
0
,
poslist
.
size
()
-
1
,
(
int
)
poslist
[
poslist
.
size
()
-
1
].
undo_pos
,
(
int
)
poslist
[
poslist
.
size
()
-
1
].
redo_pos
);
poslist
.
pop_back
();
}
...
...
@@ -461,7 +461,7 @@ int GraphJournal::store( journal_eAction action, grow_tObject o)
current_idx
++
;
if
(
debug
)
printf
(
"Store idx: %3d list: %3
l
d undo: %10d redo: %10d
\n
"
,
current_idx
-
1
,
poslist
.
size
()
-
1
,
printf
(
"Store idx: %3d list: %3
z
d undo: %10d redo: %10d
\n
"
,
current_idx
-
1
,
poslist
.
size
()
-
1
,
(
int
)
poslist
[
poslist
.
size
()
-
1
].
undo_pos
,
(
int
)
poslist
[
poslist
.
size
()
-
1
].
redo_pos
);
return
GE__SUCCESS
;
...
...
@@ -478,7 +478,7 @@ int GraphJournal::undo()
return
0
;
if
(
debug
)
printf
(
"Undo idx: %3d list: %3
l
d undo: %10d redo: %10d
\n
"
,
current_idx
-
1
,
poslist
.
size
()
-
1
,
printf
(
"Undo idx: %3d list: %3
z
d undo: %10d redo: %10d
\n
"
,
current_idx
-
1
,
poslist
.
size
()
-
1
,
(
int
)
poslist
[
current_idx
-
1
].
undo_pos
,
(
int
)
poslist
[
current_idx
-
1
].
redo_pos
);
fp
.
seekp
(
poslist
[
current_idx
-
1
].
undo_pos
);
...
...
@@ -555,7 +555,7 @@ int GraphJournal::redo()
return
0
;
if
(
debug
)
printf
(
"Redo idx: %3d list: %3
l
d undo: %10d redo: %10d
\n
"
,
current_idx
,
poslist
.
size
()
-
1
,
printf
(
"Redo idx: %3d list: %3
z
d undo: %10d redo: %10d
\n
"
,
current_idx
,
poslist
.
size
()
-
1
,
(
int
)
poslist
[
current_idx
].
undo_pos
,
(
int
)
poslist
[
current_idx
].
redo_pos
);
if
(
poslist
[
current_idx
].
redo_pos
==
-
1
)
...
...
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