projects
/
lwext4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a little more logging to mkfs.
[lwext4.git]
/
src
/
ext4_hash.c
diff --git
a/src/ext4_hash.c
b/src/ext4_hash.c
index 4f97eac139779f5ff9d447b1d7d27fb93735d372..ff6d0314d724d1c62b76fc01f4fc7ba947338e4d 100644
(file)
--- a/
src/ext4_hash.c
+++ b/
src/ext4_hash.c
@@
-61,9
+61,11
@@
* @brief Directory indexing hash functions.
*/
* @brief Directory indexing hash functions.
*/
-#include "ext4_config.h"
-#include "ext4_types.h"
-#include "ext4_errno.h"
+#include <ext4_config.h>
+#include <ext4_types.h>
+#include <ext4_misc.h>
+#include <ext4_errno.h>
+#include <ext4_debug.h>
#include <string.h>
#include <string.h>
@@
-270,6
+272,7
@@
int ext2_htree_hash(const char *name, int len, const uint32_t *hash_seed,
switch (hash_version) {
case EXT2_HTREE_TEA_UNSIGNED:
unsigned_char = 1;
switch (hash_version) {
case EXT2_HTREE_TEA_UNSIGNED:
unsigned_char = 1;
+ /* FALLTHRU */
case EXT2_HTREE_TEA:
while (len > 0) {
ext2_prep_hashbuf(name, len, data, 16, unsigned_char);
case EXT2_HTREE_TEA:
while (len > 0) {
ext2_prep_hashbuf(name, len, data, 16, unsigned_char);
@@
-282,11
+285,13
@@
int ext2_htree_hash(const char *name, int len, const uint32_t *hash_seed,
break;
case EXT2_HTREE_LEGACY_UNSIGNED:
unsigned_char = 1;
break;
case EXT2_HTREE_LEGACY_UNSIGNED:
unsigned_char = 1;
+ /* FALLTHRU */
case EXT2_HTREE_LEGACY:
major = ext2_legacy_hash(name, len, unsigned_char);
break;
case EXT2_HTREE_HALF_MD4_UNSIGNED:
unsigned_char = 1;
case EXT2_HTREE_LEGACY:
major = ext2_legacy_hash(name, len, unsigned_char);
break;
case EXT2_HTREE_HALF_MD4_UNSIGNED:
unsigned_char = 1;
+ /* FALLTHRU */
case EXT2_HTREE_HALF_MD4:
while (len > 0) {
ext2_prep_hashbuf(name, len, data, 32, unsigned_char);
case EXT2_HTREE_HALF_MD4:
while (len > 0) {
ext2_prep_hashbuf(name, len, data, 32, unsigned_char);