Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
3302916f
Commit
3302916f
authored
Sep 07, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Quench a pointless debug printf
parent
eea97dbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
storage_file.c
bin/varnishd/storage_file.c
+2
-5
No files found.
bin/varnishd/storage_file.c
View file @
3302916f
...
...
@@ -104,13 +104,10 @@ struct smf_sc {
/*--------------------------------------------------------------------*/
static
void
smf_initfile
(
struct
s
tevedore
*
st
,
struct
s
mf_sc
*
sc
,
const
char
*
size
)
smf_initfile
(
struct
smf_sc
*
sc
,
const
char
*
size
)
{
sc
->
filesize
=
STV_FileSize
(
sc
->
fd
,
size
,
&
sc
->
pagesize
,
"-sfile"
);
printf
(
"SMF.%s: filename: %s size %ju MB.
\n
"
,
st
->
ident
,
sc
->
filename
,
sc
->
filesize
/
(
1024
*
1024
));
AZ
(
ftruncate
(
sc
->
fd
,
(
off_t
)
sc
->
filesize
));
/* XXX: force block allocation here or in open ? */
...
...
@@ -162,7 +159,7 @@ smf_init(struct stevedore *parent, int ac, char * const *av)
(
void
)
STV_GetFile
(
fn
,
&
sc
->
fd
,
&
sc
->
filename
,
"-sfile"
);
mgt_child_inherit
(
sc
->
fd
,
"storage_file"
);
smf_initfile
(
parent
,
sc
,
size
);
smf_initfile
(
sc
,
size
);
}
/*--------------------------------------------------------------------
...
...
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