summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-08-26 12:09:06 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-08-26 12:09:06 -0600
commit9ec3d8a8761ce3058ead6d189c499ef3a5f8973e (patch)
tree1a8bb847c48a47869d8741387e6fc504594298e6
parentf52da1cac583c31a7f0ca5530466dce2bede598e (diff)
clean up
-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); }