Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ffs use %s/__func__ so that the strings can be shared.



details:   https://anonhg.NetBSD.org/src/rev/d16d554eb00a
branches:  trunk
changeset: 931076:d16d554eb00a
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Apr 21 15:04:12 2020 +0000

description:
use %s/__func__ so that the strings can be shared.

diffstat:

 sys/ufs/ffs/ffs_subr.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 3e3d6dcf1c57 -r d16d554eb00a sys/ufs/ffs/ffs_subr.c
--- a/sys/ufs/ffs/ffs_subr.c    Tue Apr 21 14:51:06 2020 +0000
+++ b/sys/ufs/ffs/ffs_subr.c    Tue Apr 21 15:04:12 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_subr.c,v 1.51 2019/05/28 03:53:28 kamil Exp $      */
+/*     $NetBSD: ffs_subr.c,v 1.52 2020/04/21 15:04:12 christos Exp $   */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -36,7 +36,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_subr.c,v 1.51 2019/05/28 03:53:28 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_subr.c,v 1.52 2020/04/21 15:04:12 christos Exp $");
 
 #include <sys/param.h>
 
@@ -195,7 +195,7 @@
                mask = 0x01 << (h & 0x7);
                return ((cp[h >> 3] & mask) == mask);
        default:
-               panic("ffs_isblock: unknown fs_fragshift %d",
+               panic("%s: unknown fs_fragshift %d", __func__,
                    (int)fs->fs_fragshift);
        }
 }
@@ -219,7 +219,7 @@
        case 0:
                return ((cp[h >> 3] & (0x01 << (h & 0x7))) == 0);
        default:
-               panic("ffs_isfreeblock: unknown fs_fragshift %d",
+               panic("%s: unknown fs_fragshift %d", __func__,
                    (int)fs->fs_fragshift);
        }
 }
@@ -245,7 +245,7 @@
                cp[h >> 3] &= ~(0x01 << (h & 0x7));
                return;
        default:
-               panic("ffs_clrblock: unknown fs_fragshift %d",
+               panic("%s: unknown fs_fragshift %d", __func__,
                    (int)fs->fs_fragshift);
        }
 }
@@ -271,7 +271,7 @@
                cp[h >> 3] |= (0x01 << (h & 0x7));
                return;
        default:
-               panic("ffs_setblock: unknown fs_fragshift %d",
+               panic("%s: unknown fs_fragshift %d", __func__,
                    (int)fs->fs_fragshift);
        }
 }



Home | Main Index | Thread Index | Old Index