summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sd_daemon/listen_fds.go (renamed from sd-daemon/listen_fds.go)2
-rw-r--r--sd_daemon/logger/logger.go (renamed from sd-daemon/logger/logger.go)9
2 files changed, 7 insertions, 4 deletions
diff --git a/sd-daemon/listen_fds.go b/sd_daemon/listen_fds.go
index c90d373..45ef699 100644
--- a/sd-daemon/listen_fds.go
+++ b/sd_daemon/listen_fds.go
@@ -14,7 +14,7 @@
// limitations under the License.
// Package activation implements primitives for systemd socket activation.
-package listen
+package sd_daemon
import (
"os"
diff --git a/sd-daemon/logger/logger.go b/sd_daemon/logger/logger.go
index cfabe9f..6c09604 100644
--- a/sd-daemon/logger/logger.go
+++ b/sd_daemon/logger/logger.go
@@ -1,13 +1,16 @@
package logger
-import ("fmt"; "os")
+import (
+ "fmt"
+ "os"
+)
//#include <systemd/sd-daemon.h>
import "C"
func log(level string, format string, a ...interface{}) {
- f := level + format + "\n";
- fmt.Fprintf(os.Stderr, f, a);
+ f := level + format + "\n"
+ fmt.Fprintf(os.Stderr, f, a)
}
/* system is unusable */ func Emerg( format string, a ...interface{}) { log(C.SD_EMERG , format, a); }