diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-02 16:45:10 +0530 |
---|---|---|
committer | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-05 20:53:35 +0530 |
commit | acd4965776507abe1102b3a2bfa5ed9cd0340e14 (patch) | |
tree | 6bbf67ce94d1140e6550d2ea4ecc128f3e8123ed /common.c | |
parent | ff74a2144e02af11373375f8d40e9b312a0dd0c6 (diff) |
gluster-block: refresh logging
add more meaningful log messages
minor code changes such as renaming, indentation and et cetera.
Signed-off-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'common.c')
-rw-r--r-- | common.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -13,12 +13,12 @@ -size_t +ssize_t glusterBlockCreateParseSize(char *value) { char *postfix; char *tmp; - size_t sizef; + ssize_t sizef; if (!value) return -1; @@ -30,8 +30,9 @@ glusterBlockCreateParseSize(char *value) } tmp = postfix; - if (*postfix == ' ') + if (*postfix == ' ') { tmp = tmp + 1; + } switch (*tmp) { case 'Y': @@ -64,8 +65,9 @@ glusterBlockCreateParseSize(char *value) return sizef; break; default: - ERROR("%s", "You may use k/K, M, G or T suffixes for " - "kilobytes, megabytes, gigabytes and terabytes."); + /*TODO: Log this instead of printing + ERROR("%s", "You may use k/K, M, G or T suffixes for " + "kilobytes, megabytes, gigabytes and terabytes."); */ return -1; } } |