summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/replay.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-05-16 13:11:23 -0400
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-05-16 13:11:23 -0400
commita6aae4dd0ffad299a33d122f8a339b399bee5381 (patch)
tree958b015be27d97d079a3c14694576571ca916600 /fs/ubifs/replay.c
parentf70b7e52aa23c9aea5346b9730b402fb55f9079b (diff)
UBIFS: get rid of dbg_err
This patch removes the 'dbg_err()' macro and we now use 'ubifs_err()' instead. The idea of 'dbg_err()' was to compile out some error message to make the binary a bit smaller - but I think it was a bad idea. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'fs/ubifs/replay.c')
-rw-r--r--fs/ubifs/replay.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/ubifs/replay.c b/fs/ubifs/replay.c
index 6ce25969b785..2a2e3ee720fe 100644
--- a/fs/ubifs/replay.c
+++ b/fs/ubifs/replay.c
@@ -861,16 +861,16 @@ static int replay_log_leb(struct ubifs_info *c, int lnum, int offs, void *sbuf)
861 * numbers. 861 * numbers.
862 */ 862 */
863 if (snod->type != UBIFS_CS_NODE) { 863 if (snod->type != UBIFS_CS_NODE) {
864 dbg_err("first log node at LEB %d:%d is not CS node", 864 ubifs_err("first log node at LEB %d:%d is not CS node",
865 lnum, offs); 865 lnum, offs);
866 goto out_dump; 866 goto out_dump;
867 } 867 }
868 if (le64_to_cpu(node->cmt_no) != c->cmt_no) { 868 if (le64_to_cpu(node->cmt_no) != c->cmt_no) {
869 dbg_err("first CS node at LEB %d:%d has wrong " 869 ubifs_err("first CS node at LEB %d:%d has wrong "
870 "commit number %llu expected %llu", 870 "commit number %llu expected %llu",
871 lnum, offs, 871 lnum, offs,
872 (unsigned long long)le64_to_cpu(node->cmt_no), 872 (unsigned long long)le64_to_cpu(node->cmt_no),
873 c->cmt_no); 873 c->cmt_no);
874 goto out_dump; 874 goto out_dump;
875 } 875 }
876 876
@@ -892,7 +892,7 @@ static int replay_log_leb(struct ubifs_info *c, int lnum, int offs, void *sbuf)
892 892
893 /* Make sure the first node sits at offset zero of the LEB */ 893 /* Make sure the first node sits at offset zero of the LEB */
894 if (snod->offs != 0) { 894 if (snod->offs != 0) {
895 dbg_err("first node is not at zero offset"); 895 ubifs_err("first node is not at zero offset");
896 goto out_dump; 896 goto out_dump;
897 } 897 }
898 898
@@ -905,8 +905,8 @@ static int replay_log_leb(struct ubifs_info *c, int lnum, int offs, void *sbuf)
905 } 905 }
906 906
907 if (snod->sqnum < c->cs_sqnum) { 907 if (snod->sqnum < c->cs_sqnum) {
908 dbg_err("bad sqnum %llu, commit sqnum %llu", 908 ubifs_err("bad sqnum %llu, commit sqnum %llu",
909 snod->sqnum, c->cs_sqnum); 909 snod->sqnum, c->cs_sqnum);
910 goto out_dump; 910 goto out_dump;
911 } 911 }
912 912