RFC libata debugging
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest1 of 2 patches 0 repliesNew
1 of 2 patches is in this archive. The cover letter announces 2.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | libata debugging: libata.h debugging macroslinux/ | +29 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC] [PATCH 0/2] libata debugging
Hi Jeff, hi all,
here's a preliminary patch that converts the libata debugging code to something similar to the netdev debugging mechanism. This is, however, only an alpha version and introduces the main concept as proposed by Jeff. Its purpose is to collect as much feedback from you all as possible in order for me to correct it and Do the Right Thing(tm). (That's why I converted only libata-core.c - the rest after the review.) Some questions that arose during the process:
1. ata_dev_classify() doesn't have an ata_port pointer defined in order to query the debugging level but its users have so should i convert it to
unsigned int ata_dev_classify(struct ata_taskfile *tf, struct ata_port *ap)
so that the ata_port pointer gets passed and debugging is enabled?
2. ata_{host,device}_add() and ata_pci_init_one() are initialization functions and in this case an ata_port is not yet/still getting initialized. How should we print debugging messages there?
3. What about the assert() macro in <include/linux/libata.h>?
Thanks and regards,
Borislav Petkov.