Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-stable
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
emulab
emulab-stable
Commits
b780cb69
Commit
b780cb69
authored
Dec 23, 2003
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor change to allow use with programs that setup syslog themselves.
parent
a733e4c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
lib/libtb/log.c
lib/libtb/log.c
+9
-0
lib/libtb/log.h
lib/libtb/log.h
+2
-1
No files found.
lib/libtb/log.c
View file @
b780cb69
...
@@ -52,6 +52,15 @@ loginit(int slog, char *name)
...
@@ -52,6 +52,15 @@ loginit(int slog, char *name)
return
0
;
return
0
;
}
}
/*
* Switch to syslog; caller has already opened syslog connection.
*/
void
logsyslog
(
void
)
{
usesyslog
=
1
;
}
void
void
info
(
const
char
*
fmt
,
...)
info
(
const
char
*
fmt
,
...)
{
{
...
...
lib/libtb/log.h
View file @
b780cb69
/*
/*
* EMULAB-COPYRIGHT
* EMULAB-COPYRIGHT
* Copyright (c) 2000-200
2
University of Utah and the Flux Group.
* Copyright (c) 2000-200
3
University of Utah and the Flux Group.
* All rights reserved.
* All rights reserved.
*/
*/
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#include <stdarg.h>
#include <stdarg.h>
int
loginit
(
int
usesyslog
,
char
*
name
);
int
loginit
(
int
usesyslog
,
char
*
name
);
void
logsyslog
(
void
);
void
info
(
const
char
*
fmt
,
...);
void
info
(
const
char
*
fmt
,
...);
void
warning
(
const
char
*
fmt
,
...);
void
warning
(
const
char
*
fmt
,
...);
void
error
(
const
char
*
fmt
,
...);
void
error
(
const
char
*
fmt
,
...);
...
...
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