|
|
|
Re: [PATCH EDACv16 1/2] edac: Change internal representation to work with layers | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
|
On Sun, Apr 29, 2012 at 02:39:04PM -0300, Mauro Carvalho Chehab wrote: > Em 29-04-2012 13:43, Joe Perches escreveu: > > On Sun, 2012-04-29 at 13:20 -0300, Mauro Carvalho Chehab wrote: > >> The script below is even better. After that, only 113 occurrences of __func__ > >> is now found at drivers/edac, and some of them are not related to debugf[1-9], > >> so they shouldn't be cover on a patch like that. > >> I'll do some manual cleanup on it. > > > > Hi Mauro. > > > > Another thing you could do would be to > > separate the level from the multiple macros, > > use a single macro, and convert the uses. > > > > #define debugf(level, fmt, ...) > > and change the uses to > > debugf([0-n], "some format", args...) > > > > I believe that's the more predominate > > kernel style for debugging macros with > > a tested level or mask. > > Agreed. > > > Perhaps also add !CONFIG_EDAC_DEBUG > > format/args checking to the debug statements. > > Most/all debug-only stuff are already checking for CONFIG_EDAC_DEBUG. > There are a few static debug-only data/functions that aren't testing for > it, but the compiler should remove the dead code anyway, so this shouldn't > cause any harm. > > > Lastly, indenting the messages 2 tabs isn't > > really useful, one or two spaces is probably > > enough. > > agreed. > > > > > I did this a bit ago so it may not apply > > after your changes: > > Believe or not, it applied without troubles ;) > > I've added at the end of my experimental series, at: > > > git://git.infradead.org/users/mchehab/edac.git experimental > > be careful if you use this branch, as I'm rebasing it every time I need > to change something on this series. > > I'm keeping a non-rebased version, with one branch per review, at: > > git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-edac.git > > The current review is at hw_events_v17. Patches were already pushed there. > they should be there after the usual kernel.org master/mirror replication > delay. Now wait a minute, you guys are so trigger-happy to apply humongous, cleanup patches but let me ask this: can anyone of you really test those changes with each driver? Do you have all the hardware that those patches touch? I know, I know, it builds fine and it looks correct but subtle bugs tend to sneak in in exactly such situations. -- Regards/Gruss, Boris. Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach GM: Alberto Bozzo Reg: Dornach, Landkreis Muenchen HRB Nr. 43632 WEEE Registernr: 129 19551 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[Other Archives] [Linux Kernel Newbies] [Linux Driver Development] [Fedora Kernel] [Linux Kernel Testers] [Linux SH] [Linux Omap] [Linux Kbuild] [Linux Tape] [Linux Input] [Linux Kernel Janitors] [Linux Kernel Packagers] [Linux Doc] [Linux Man Pages] [Linux API] [Linux Memory Management] [Linux Modules] [Linux Standards] [Kernel Announce] [Netdev] [Git] [Linux PCI] Linux CAN Development [Linux I2C] [Linux RDMA] [Linux NUMA] [Netfilter] [Netfilter Devel] [SELinux] [Bugtraq] [FIO] [Linux Perf Users] [Linux Serial] [Linux PPP] [Linux ISDN] [Linux Next] [Kernel Stable Commits] [Linux Tip Commits] [Kernel MM Commits] [Linux Security Module] [AutoFS] [Filesystem Development] [Ext3 Filesystem] [Linux bcache] [Ext4 Filesystem] [Linux BTRFS] [Linux CEPH Filesystem] [Linux XFS] [XFS] [Linux NFS] [Linux CIFS] [Ecryptfs] [Linux NILFS] [Linux Cachefs] [Reiser FS] [Initramfs] [Linux FB Devel] [Linux OpenGL] [DRI Devel] [Fastboot] [Linux RT Users] [Linux RT Stable] [eCos] [Corosync] [Linux Clusters] [LVS Devel] [Hot Plug] [Linux Virtualization] [KVM] [KVM PPC] [KVM ia64] [Linux Containers] [Linux Hexagon] [Linux Cgroups] [Util Linux] [Wireless] [Linux Bluetooth] [Bluez Devel] [Ethernet Bridging] [Embedded Linux] [Barebox] [Linux MMC] [Linux IIO] [Sparse] [Smatch] [Linux Arch] [x86 Platform Driver] [Linux ACPI] [Linux IBM ACPI] [LM Sensors] [CPU Freq] [Linux Power Management] [Linmodems] [Linux DCCP] [Linux SCTP] [ALSA Devel] [Linux USB] [Linux PA RISC] [Linux Samsung SOC] [MIPS Linux] [IBM S/390 Linux] [ARM Linux] [ARM Kernel] [ARM MSM] [Tegra Devel] [Sparc Linux] [Linux Security] [Linux Sound] [Linux Media] [Video 4 Linux] [Linux IRDA Users] [Linux for the blind] [Linux RAID] [Linux ATA RAID] [Device Mapper] [Linux SCSI] [SCSI Target Devel] [Linux SCSI Target Infrastructure] [Linux IDE] [Linux SMP] [Linux AXP] [Linux Alpha] [Linux M68K] [Linux ia64] [Linux 8086] [Linux x86_64] [Linux Config] [Linux Apps] [Linux MSDOS] [Linux X.25] [Linux Crypto] [DM Crypt] [Linux Trace Users] [Linux Btrace] [Linux Watchdog] [Utrace Devel] [Linux C Programming] [Linux Assembly] [Dash] [DWARVES] [Hail Devel] [Linux Kernel Debugger] [Linux gcc] [Gcc Help] [X.Org] [Wine]
![]() |
![]() |
[Older Kernel Discussion] [Yosemite National Park Forum] [Large Format Photos] [Gimp] [Yosemite Photos] [Stuff]