shithub: riscv

Download patch

ref: 0406d9828a33e1a5597905aac2f64b40432d962c
parent: e14690517e49cef5ab3f096f0494d45bf2010385
author: aiju <devnull@localhost>
date: Thu Feb 23 20:08:08 EST 2017

asaudit: missing \n in print

--- a/sys/src/cmd/auth/asaudit.c
+++ b/sys/src/cmd/auth/asaudit.c
@@ -27,7 +27,7 @@
 {
 	db = ndbopen(nil);
 	if(db == nil){
-		print("ndbopen: %r");
+		print("ndbopen: %r\n");
 		return;
 	}
 }
@@ -79,12 +79,12 @@
 	buf = smprint("/mnt/keys/%s/aeskey", nvr.authid);
 	fd = open(buf, OREAD);
 	if(fd < 0){
-		print("can't get key from keyfs: %r");
+		print("can't get key from keyfs: %r\n");
 		return;
 	}
 	werrstr("short read");
 	if(read(fd, aes, sizeof(aes)) < sizeof(aes)){
-		print("read: %r");
+		print("read: %r\n");
 		close(fd);
 		return;
 	}
--