asaudit: missing \n in print

This commit is contained in:
aiju 2017-02-24 01:08:08 +01:00
parent e14690517e
commit 0406d9828a

View file

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