lib/vsprintf.c: remove %Z support
Now that %z is standartised in C99 there is no reason to support %Z. Unlike %L it doesn't even make format strings smaller. Use BUILD_BUG_ON in a couple ATM drivers. In case anyone didn't notice lib/vsprintf.o is about half of SLUB which is in my opinion is quite an achievement. Hopefully this patch inspires someone else to trim vsprintf.c more. Link: http://lkml.kernel.org/r/20170103230126.GA30170@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: Andy Shevchenko <andy.shevchenko@gmail.com> Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

vanhempi
d7f6724366
commit
5b5e0928f7
@@ -2051,7 +2051,7 @@ static void snd_korg1212_proc_read(struct snd_info_entry *entry,
|
||||
snd_iprintf(buffer, korg1212->card->longname);
|
||||
snd_iprintf(buffer, " (index #%d)\n", korg1212->card->number + 1);
|
||||
snd_iprintf(buffer, "\nGeneral settings\n");
|
||||
snd_iprintf(buffer, " period size: %Zd bytes\n", K1212_PERIOD_BYTES);
|
||||
snd_iprintf(buffer, " period size: %zd bytes\n", K1212_PERIOD_BYTES);
|
||||
snd_iprintf(buffer, " clock mode: %s\n", clockSourceName[korg1212->clkSrcRate] );
|
||||
snd_iprintf(buffer, " left ADC Sens: %d\n", korg1212->leftADCInSens );
|
||||
snd_iprintf(buffer, " right ADC Sens: %d\n", korg1212->rightADCInSens );
|
||||
@@ -2276,7 +2276,7 @@ static int snd_korg1212_create(struct snd_card *card, struct pci_dev *pci,
|
||||
|
||||
if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(pci),
|
||||
sizeof(struct KorgSharedBuffer), &korg1212->dma_shared) < 0) {
|
||||
snd_printk(KERN_ERR "korg1212: can not allocate shared buffer memory (%Zd bytes)\n", sizeof(struct KorgSharedBuffer));
|
||||
snd_printk(KERN_ERR "korg1212: can not allocate shared buffer memory (%zd bytes)\n", sizeof(struct KorgSharedBuffer));
|
||||
snd_korg1212_free(korg1212);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
@@ -292,7 +292,7 @@ static int pcxhr_dsp_load(struct pcxhr_mgr *mgr, int index,
|
||||
int err, card_index;
|
||||
|
||||
dev_dbg(&mgr->pci->dev,
|
||||
"loading dsp [%d] size = %Zd\n", index, dsp->size);
|
||||
"loading dsp [%d] size = %zd\n", index, dsp->size);
|
||||
|
||||
switch (index) {
|
||||
case PCXHR_FIRMWARE_XLX_INT_INDEX:
|
||||
|
Viittaa uudesa ongelmassa
Block a user