debug.c (cdd38c5f1ce4398ec58fec95904b75824daab7b5) debug.c (be076fdf8369f3b4842362c64cd681f3d498f3dd)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * This file is part of UBIFS.
4 *
5 * Copyright (C) 2006-2008 Nokia Corporation
6 *
7 * Authors: Artem Bityutskiy (Битюцкий Артём)
8 * Adrian Hunter

--- 2810 unchanged lines hidden (view full) ---

2819void dbg_debugfs_init_fs(struct ubifs_info *c)
2820{
2821 int n;
2822 const char *fname;
2823 struct ubifs_debug_info *d = c->dbg;
2824
2825 n = snprintf(d->dfs_dir_name, UBIFS_DFS_DIR_LEN + 1, UBIFS_DFS_DIR_NAME,
2826 c->vi.ubi_num, c->vi.vol_id);
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * This file is part of UBIFS.
4 *
5 * Copyright (C) 2006-2008 Nokia Corporation
6 *
7 * Authors: Artem Bityutskiy (Битюцкий Артём)
8 * Adrian Hunter

--- 2810 unchanged lines hidden (view full) ---

2819void dbg_debugfs_init_fs(struct ubifs_info *c)
2820{
2821 int n;
2822 const char *fname;
2823 struct ubifs_debug_info *d = c->dbg;
2824
2825 n = snprintf(d->dfs_dir_name, UBIFS_DFS_DIR_LEN + 1, UBIFS_DFS_DIR_NAME,
2826 c->vi.ubi_num, c->vi.vol_id);
2827 if (n == UBIFS_DFS_DIR_LEN) {
2827 if (n > UBIFS_DFS_DIR_LEN) {
2828 /* The array size is too small */
2829 return;
2830 }
2831
2832 fname = d->dfs_dir_name;
2833 d->dfs_dir = debugfs_create_dir(fname, dfs_rootdir);
2834
2835 fname = "dump_lprops";

--- 211 unchanged lines hidden ---
2828 /* The array size is too small */
2829 return;
2830 }
2831
2832 fname = d->dfs_dir_name;
2833 d->dfs_dir = debugfs_create_dir(fname, dfs_rootdir);
2834
2835 fname = "dump_lprops";

--- 211 unchanged lines hidden ---