Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138845
b: refs/heads/master
c: 78b6513
h: refs/heads/master
i:
  138843: 68ef8ca
v: v3
  • Loading branch information
Jeff Mahoney authored and Linus Torvalds committed Mar 30, 2009
1 parent 969d905 commit 1b5e8b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fd7cb031efb1dd71cb731668e2f597d9e61acdcb
refs/heads/master: 78b6513d2881f1a759fb9825a036d926392de084
5 changes: 4 additions & 1 deletion trunk/fs/reiserfs/prints.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,16 @@ static char *is_there_reiserfs_struct(char *fmt, int *what)
printk ("bad key %lu %lu %lu %lu", key->k_dir_id, key->k_objectid,
key->k_offset, key->k_uniqueness);
*/

static DEFINE_SPINLOCK(error_lock);
static void prepare_error_buf(const char *fmt, va_list args)
{
char *fmt1 = fmt_buf;
char *k;
char *p = error_buf;
int what;

spin_lock(&error_lock);

strcpy(fmt1, fmt);

while ((k = is_there_reiserfs_struct(fmt1, &what)) != NULL) {
Expand Down Expand Up @@ -237,6 +239,7 @@ static void prepare_error_buf(const char *fmt, va_list args)
fmt1 = k + 2;
}
vsprintf(p, fmt1, args);
spin_unlock(&error_lock);

}

Expand Down

0 comments on commit 1b5e8b8

Please sign in to comment.