[ARVADOS] updated: 1.3.0-852-gcafd28756

Git user git at public.curoverse.com
Fri May 10 20:11:43 UTC 2019


Summary of changes:
 services/keepstore/unix_volume.go | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

       via  cafd28756a1465381774ed2e1df500bd148a4a1f (commit)
      from  9eca0b4f14f8aefd58dba08bd735070fdac363df (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit cafd28756a1465381774ed2e1df500bd148a4a1f
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date:   Fri May 10 16:07:47 2019 -0400

    Remove extra \n from log.Printf formats
    
    No issue #
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>

diff --git a/services/keepstore/unix_volume.go b/services/keepstore/unix_volume.go
index 96f458720..c5d719261 100644
--- a/services/keepstore/unix_volume.go
+++ b/services/keepstore/unix_volume.go
@@ -169,7 +169,7 @@ func (v *UnixVolume) DeviceID() string {
 
 	fi, err := os.Stat(dev)
 	if err != nil {
-		return giveup("stat %q: %s\n", dev, err)
+		return giveup("stat %q: %s", dev, err)
 	}
 	ino := fi.Sys().(*syscall.Stat_t).Ino
 
@@ -377,18 +377,18 @@ func (v *UnixVolume) WriteBlock(ctx context.Context, loc string, rdr io.Reader)
 	n, err := io.Copy(tmpfile, rdr)
 	v.os.stats.TickOutBytes(uint64(n))
 	if err != nil {
-		log.Printf("%s: writing to %s: %s\n", v, bpath, err)
+		log.Printf("%s: writing to %s: %s", v, bpath, err)
 		tmpfile.Close()
 		v.os.Remove(tmpfile.Name())
 		return err
 	}
 	if err := tmpfile.Close(); err != nil {
-		log.Printf("closing %s: %s\n", tmpfile.Name(), err)
+		log.Printf("closing %s: %s", tmpfile.Name(), err)
 		v.os.Remove(tmpfile.Name())
 		return err
 	}
 	if err := v.os.Rename(tmpfile.Name(), bpath); err != nil {
-		log.Printf("rename %s %s: %s\n", tmpfile.Name(), bpath, err)
+		log.Printf("rename %s %s: %s", tmpfile.Name(), bpath, err)
 		return v.os.Remove(tmpfile.Name())
 	}
 	return nil
@@ -400,14 +400,14 @@ func (v *UnixVolume) WriteBlock(ctx context.Context, loc string, rdr io.Reader)
 func (v *UnixVolume) Status() *VolumeStatus {
 	fi, err := v.os.Stat(v.Root)
 	if err != nil {
-		log.Printf("%s: os.Stat: %s\n", v, err)
+		log.Printf("%s: os.Stat: %s", v, err)
 		return nil
 	}
 	devnum := fi.Sys().(*syscall.Stat_t).Dev
 
 	var fs syscall.Statfs_t
 	if err := syscall.Statfs(v.Root, &fs); err != nil {
-		log.Printf("%s: statfs: %s\n", v, err)
+		log.Printf("%s: statfs: %s", v, err)
 		return nil
 	}
 	// These calculations match the way df calculates disk usage:
@@ -620,7 +620,7 @@ func (v *UnixVolume) IsFull() (isFull bool) {
 	if avail, err := v.FreeDiskSpace(); err == nil {
 		isFull = avail < MinFreeKilobytes
 	} else {
-		log.Printf("%s: FreeDiskSpace: %s\n", v, err)
+		log.Printf("%s: FreeDiskSpace: %s", v, err)
 		isFull = false
 	}
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list