diff options
author | Simon Rettberg | 2016-03-22 15:58:13 +0100 |
---|---|---|
committer | Simon Rettberg | 2016-03-22 15:58:13 +0100 |
commit | 549a53070ae03b47e11943727afe4f8927cb6c42 (patch) | |
tree | 58aa2d01553a862964040f1e160b9366c1f2a8fc /src/server/image.c | |
parent | [SERVER] (FreeBSD) Unlock send mutex on sendfile error (diff) | |
download | dnbd3-549a53070ae03b47e11943727afe4f8927cb6c42.tar.gz dnbd3-549a53070ae03b47e11943727afe4f8927cb6c42.tar.xz dnbd3-549a53070ae03b47e11943727afe4f8927cb6c42.zip |
[SERVER] Fix formatting
Diffstat (limited to 'src/server/image.c')
-rw-r--r-- | src/server/image.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/image.c b/src/server/image.c index 3d4aab6..1c0741a 100644 --- a/src/server/image.c +++ b/src/server/image.c @@ -739,7 +739,7 @@ static bool image_load(char *base, char *path, int withUplink) logadd( LOG_WARNING, "Size of image '%s:%d' has changed.", existing->name, (int)existing->rid ); // Image will be replaced below } else if ( existing->crc32 != NULL && crc32list != NULL - && memcmp( existing->crc32, crc32list, sizeof(uint32_t) * hashBlockCount ) != 0 ) { + && memcmp( existing->crc32, crc32list, sizeof(uint32_t) * hashBlockCount ) != 0 ) { logadd( LOG_WARNING, "CRC32 list of image '%s:%d' has changed.", existing->name, (int)existing->rid ); logadd( LOG_WARNING, "The image will be reloaded, but you should NOT replace existing images while the server is running." ); logadd( LOG_WARNING, "Actually even if it's not running this should never be done. Use a new RID instead!" ); @@ -1522,11 +1522,11 @@ static bool image_ensureDiskSpace(uint64_t size) if ( (uint64_t)available > size ) return true; if ( dnbd3_serverUptime() < 10 * 3600 ) { logadd( LOG_INFO, "Only %dMiB free, %dMiB requested, but server uptime < 10 hours...", (int)(available / (1024ll * 1024ll)), - (int)(size / (1024 * 1024)) ); + (int)(size / (1024 * 1024)) ); return false; } logadd( LOG_INFO, "Only %dMiB free, %dMiB requested, freeing an image...", (int)(available / (1024ll * 1024ll)), - (int)(size / (1024 * 1024)) ); + (int)(size / (1024 * 1024)) ); // Find least recently used image dnbd3_image_t *oldest = NULL; int i; // XXX improve locking |