aboutsummaryrefslogtreecommitdiffstats
path: root/lib/vsprintf.c
AgeCommit message (Expand)AuthorFilesLines
2023-12-06lib/vsprintf: Fix %pfwf when current node refcount == 0Herve Codina1-3/+8
2023-11-01vsprintf: uninline simple_strntoull(), reorder argumentsAlexey Dobriyan1-13/+12
2023-08-21lib/vsprintf: split out sprintf() and friendsAndy Shevchenko1-0/+1
2023-04-27Merge tag 'mm-stable-2023-04-27-15-30' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-0/+21
2023-04-03lib/vsprintf: Use isodigit() for the octal number checkAndy Shevchenko1-1/+1
2023-03-28mm, printk: introduce new format %pGt for page_typeHyeonggon Yoo1-0/+21
2022-12-12Merge tag 'random-6.2-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-9/+5
2022-11-22vsprintf: initialize siphash key using notifierJason A. Donenfeld1-9/+5
2022-10-18vsprintf: replace in_irq() with in_hardirq()ye xingchen1-1/+1
2022-10-10Merge tag 'printk-for-6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/p...Linus Torvalds1-23/+28
2022-10-04Merge branch 'for-6.1-hash-pointer-init' into for-linusPetr Mladek1-21/+26
2022-09-29lib/vsprintf: Initialize vsprintf's pointer hash once the random core is ready.Sebastian Andrzej Siewior1-19/+27
2022-09-29lib/vsprintf: Remove static_branch_likely() from __ptr_to_hashval().Sebastian Andrzej Siewior1-11/+8
2022-09-28vsprintf: add new `%pA` format specifierGary Guo1-0/+13
2022-08-25lib/vnsprintf: add const modifier for param 'bitmap'Jian Shen1-2/+2
2022-06-10random: remove rng_has_arch_random()Jason A. Donenfeld1-2/+1
2022-05-19random: remove mostly unused async readiness notifierJason A. Donenfeld1-44/+22
2022-05-19random: remove get_random_bytes_arch() and add rng_has_arch_random()Jason A. Donenfeld1-4/+3
2022-03-24lib/vsprintf: avoid redundant work with 0 sizeWaiman Long1-3/+5
2022-03-23Merge tag 'printk-for-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-20/+29
2022-03-21Merge branch 'for-5.18-vsprintf-fourcc-fixup' into for-linusPetr Mladek1-5/+8
2022-03-12random: replace custom notifier chain with standard oneJason A. Donenfeld1-4/+6
2022-02-24vsprintf: Fix %pK with kptr_restrict == 0Christophe Leroy1-15/+21
2022-02-10vsprintf: Move space out of string literals in fourcc_string()Andy Shevchenko1-1/+2
2022-02-10vsprintf: Fix potential unaligned accessAndy Shevchenko1-5/+7
2022-01-23Merge tag 'bitmap-5.17-rc1' of git://github.com/norov/linuxLinus Torvalds1-17/+7
2022-01-15vsprintf: rework bitmap_list_stringYury Norov1-17/+7
2021-12-06vsprintf: Use non-atomic bitmap API when applicableChristophe JAILLET1-2/+2
2021-11-09Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-2/+1
2021-11-09lib: uninline simple_strntoull() as wellAlexey Dobriyan1-2/+1
2021-11-02Merge branch 'for-5.16-vsprintf-pgp' into for-linusPetr Mladek1-2/+10
2021-10-27lib/vsprintf.c: Amend static asserts for format specifier flagsAndy Shevchenko1-1/+2
2021-10-27vsprintf: Make %pGp print the hex valueMatthew Wilcox (Oracle)1-0/+8
2021-09-08Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-1/+1
2021-09-08mm: introduce PAGEFLAGS_MASK to replace ((1UL << NR_PAGEFLAGS) - 1)Muchun Song1-1/+1
2021-08-19isystem: ship and use stdarg.hAlexey Dobriyan1-1/+1
2021-07-08module: add printk formats to add module build ID to stacktracesStephen Boyd1-1/+7
2021-07-08lib: fix spelling mistakesZhen Lei1-1/+1
2021-07-02Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-0/+1
2021-07-01lib: uninline simple_strtoull()Alexey Dobriyan1-0/+1
2021-06-29Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-1/+1
2021-06-29Merge tag 'printk-for-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-40/+70
2021-06-29slub: force on no_hash_pointers when slub_debug is enabledStephen Boyd1-1/+1
2021-06-29Merge branch 'for-5.14-vsprintf-scanf' into for-linusPetr Mladek1-35/+53
2021-05-19lib: vsprintf: Fix handling of number field widths in vsscanfRichard Fitzgerald1-34/+48
2021-05-19lib: vsprintf: scanf: Negative number must have field width > 1Richard Fitzgerald1-1/+5
2021-05-17lib/vsprintf: Allow to override ISO 8601 date and time separatorAndy Shevchenko1-5/+17
2021-04-28Merge tag 'drm-next-2021-04-28' of git://anongit.freedesktop.org/drm/drmLinus Torvalds1-0/+39
2021-04-27Merge branch 'for-5.13-vsprintf-pgp' into for-linusPetr Mladek1-5/+61
2021-04-23lib/vsprintf.c: remove leftover 'f' and 'F' cases from bstr_printf()Rasmus Villemoes1-2/+0
2021-04-07printk: clarify the documentation for plain pointer printingVlastimil Babka1-2/+5
2021-03-19vsprintf: dump full information of page flags in pGpYafang Shao1-5/+61
2021-03-19lib/vsprintf: do not show no_hash_pointers message multiple timesMarco Elver1-0/+3
2021-03-16Merge tag 'drm-misc-next-2021-03-03' of git://anongit.freedesktop.org/drm/drm...Dave Airlie1-0/+39
2021-02-17lib/vsprintf: Add support for printing V4L2 and DRM fourccsSakari Ailus1-0/+39
2021-02-15lib/vsprintf: no_hash_pointers prints all addresses as unhashedTimur Tabi1-2/+34
2020-11-19lib: Fix fall-through warnings for ClangGustavo A. R. Silva1-0/+1
2020-11-18Revert "lib: Revert use of fallthrough pseudo-keyword in lib/"Nick Desaulniers1-7/+7
2020-09-25vsprintf: use bd_partno in bdev_nameChristoph Hellwig1-2/+2
2020-08-24lib: Revert use of fallthrough pseudo-keyword in lib/Gustavo A. R. Silva1-7/+7
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-7/+8
2020-08-01lib/vsprintf: Force type of flags value for gfp_tAndy Shevchenko1-1/+1
2020-08-01lib/vsprintf: Replace custom spec to print decimals with generic oneAndy Shevchenko1-7/+1
2020-08-01lib/vsprintf: Replace hidden BUILD_BUG_ON() with static_assert()Andy Shevchenko1-1/+4
2020-07-03Replace HTTP links with HTTPS ones: vsprintfAlexander A. Klimov1-1/+1
2020-06-01Merge tag 'printk-for-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/p...Linus Torvalds1-6/+33
2020-06-01Merge branch 'for-5.8-printf-time64_t' into for-linusPetr Mladek1-2/+29
2020-05-20lib/vsprintf: Print time64_t in human readable formatAndy Shevchenko1-2/+29
2020-05-19vsprintf: don't obfuscate NULL and error pointersIlya Dryomov1-0/+7
2020-05-15bpf: Restrict bpf_trace_printk()'s %s usage and add %pks, %pus specifierDaniel Borkmann1-0/+12
2020-02-28lib/vsprintf: update comment about simple_strto<foo>() functionsAndy Shevchenko1-4/+4
2019-12-01rss_stat: add support to detect RSS updates of external mmJoel Fernandes (Google)1-11/+29
2019-11-26Merge tag 'devprop-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-37/+56
2019-10-17printf: add support for printing symbolic error namesRasmus Villemoes1-0/+27
2019-10-11lib/vsprintf: Add %pfw conversion specifier for printing fwnode namesSakari Ailus1-0/+36
2019-10-11lib/vsprintf: OF nodes are first and foremost, struct device_nodesSakari Ailus1-12/+4
2019-10-11lib/vsprintf: Make use of fwnode API to obtain node names and separatorsSakari Ailus1-22/+17
2019-10-11lib/vsprintf: Add a note on re-using %pf or %pFSakari Ailus1-0/+2
2019-10-11lib/vsprintf: Remove support for %pF and %pf in favour of %pS and %psSakari Ailus1-8/+2
2019-08-15vsprintf: Prevent crash when dereferencing invalid pointers for %pDJia He1-3/+10
2019-07-09Merge tag 'printk-for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/p...Linus Torvalds1-2/+2
2019-07-04lib/vsprintf: Reinstate printing of legacy clock IDsGeert Uytterhoeven1-1/+1
2019-06-12vsprintf: fix data type of variable in string_nocheck()Youngmin Nam1-1/+1
2019-05-21treewide: Add SPDX license identifier for missed filesThomas Gleixner1-0/+1
2019-05-10vsprintf: Do not break early boot with probing addressesPetr Mladek1-7/+4
2019-04-29lib/vsprintf: Make function pointer_string staticYueHaibing1-2/+3
2019-04-26vsprintf: Limit the length of inlined error messagesPetr Mladek1-12/+27
2019-04-26vsprintf: Avoid confusion between invalid address and valuePetr Mladek1-1/+1
2019-04-26vsprintf: Prevent crash when dereferencing invalid pointersPetr Mladek1-35/+101
2019-04-26vsprintf: Consolidate handling of unknown pointer specifiersPetr Mladek1-11/+17
2019-04-26vsprintf: Factor out %pO handler as kobject_string()Petr Mladek1-5/+12
2019-04-26vsprintf: Factor out %pV handler as va_format()Petr Mladek1-9/+12
2019-04-26vsprintf: Factor out %p[iI] handler as ip_addr_string()Petr Mladek1-22/+30
2019-04-26vsprintf: Do not check address of well-known stringsPetr Mladek1-37/+44
2019-04-26vsprintf: Consistent %pK handling for kptr_restrict == 0Petr Mladek1-4/+2
2019-04-26vsprintf: Shuffle restricted_pointer()Petr Mladek1-49/+49
2019-03-09Merge tag 'printk-for-5.1' of git://git.kernel.org/pub/scm/linux/kernel/git/p...Linus Torvalds1-1/+0
2019-03-07lib/vsprintf.c: move sizeof(struct printf_spec) next to its definitionRasmus Villemoes1-2/+3
2019-02-28lib/vsprintf: Remove %pCr remnant in commentGeert Uytterhoeven1-1/+0
2018-12-10lib/vsprintf: Print time and date in human readable format via %ptAndy Shevchenko1-0/+100
2018-10-26Merge tag 'devicetree-for-4.20' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-1/+6
2018-10-25Merge tag 'printk-for-4.20' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-108/+108
2018-10-24Merge tag 'docs-4.20' of git://git.lwn.net/linuxLinus Torvalds1-11/+9
2018-10-12doc: printk-formats: Remove bogus kobject references for device nodesGeert Uytterhoeven1-11/+9
2018-10-12lib/vsprintf: Hash printed address for netdev bits fallbackGeert Uytterhoeven1-5/+4
2018-10-12lib/vsprintf: Hash legacy clock addressesGeert Uytterhoeven1-1/+1
2018-10-12lib/vsprintf: Prepare for more general use of ptr_to_id()Geert Uytterhoeven1-103/+103
2018-10-12lib/vsprintf: Make ptr argument conts in ptr_to_id()Geert Uytterhoeven1-1/+2
2018-10-05vsprintf: Fix off-by-one bug in bstr_printf() processing dereferenced pointersSteven Rostedt (VMware)1-1/+1
2018-09-07vsprintf: print OF node name using full_nameRob Herring1-1/+6
2018-08-15Merge tag 'random_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-1/+26
2018-08-07lib/vsprintf: Do not handle %pO[^F] as %pxBart Van Assche1-0/+1
2018-07-17vsprintf: Add command line option debug_boot_weak_hashTobin C. Harding1-0/+17
2018-07-17vsprintf: Use hw RNG for ptr_keyTobin C. Harding1-1/+9
2018-06-06Merge tag 'printk-for-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-80/+53
2018-06-05Merge branch 'for-4.18-vsprintf-pcr-removal' into for-4.18Petr Mladek1-3/+0
2018-06-05lib/vsprintf: Remove atomic-unsafe support for %pCrGeert Uytterhoeven1-3/+0
2018-05-16vsprintf: Replace memory barrier with static_key for random_ptr_key updateSteven Rostedt (VMware)1-11/+15
2018-04-18vsprintf: Tweak pF/pf commentSergey Senozhatsky1-8/+4
2018-04-11proc: add seq_put_decimal_ull_width to speed up /proc/pid/smapsAndrei Vagin1-4/+14
2018-04-11lib/vsprintf: Mark expected switch fall-throughAndy Shevchenko1-0/+3
2018-04-11lib/vsprintf: Replace space with '_' before crng is readyShunyong Yang1-1/+2
2018-04-11lib/vsprintf: Deduplicate pointer_string()Andy Shevchenko1-20/+7
2018-04-11lib/vsprintf: Move pointer_string() upperAndy Shevchenko1-14/+14
2018-04-11lib/vsprintf: Make flag_spec globalAndy Shevchenko1-13/+8
2018-04-11lib/vsprintf: Make strspec globalAndy Shevchenko1-12/+9
2018-04-11lib/vsprintf: Make dec_spec globalAndy Shevchenko1-12/+9
2018-04-06vsprintf: Do not preprocess non-dereferenced pointers for bprintf (%px and %pK)Steven Rostedt (VMware)1-0/+4
2018-02-08vsprintf: avoid misleading "(null)" for %pxAdam Borowski1-1/+1
2018-02-01Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/pml...Linus Torvalds1-3/+2
2018-02-01Merge tag 'trace-v4.16' of git://git.kernel.org/pub/scm/linux/kernel/git/rost...Linus Torvalds1-13/+69
2018-01-23vsprintf: Do not have bprintf dereference pointersSteven Rostedt (VMware)1-13/+69
2018-01-09symbol lookup: introduce dereference_symbol_descriptor()Sergey Senozhatsky1-3/+2
2017-12-21vsprintf: Fix a dangling documentation referenceJonathan Corbet1-1/+1
2017-12-21doc: convert printk-formats.txt to rstTobin C. Harding1-1/+2
2017-11-29vsprintf: don't use 'restricted_pointer()' when not restrictingLinus Torvalds1-0/+2
2017-11-29vsprintf: add printk specifier %pxTobin C. Harding1-0/+18
2017-11-29printk: hash addresses printed with %pTobin C. Harding1-7/+74
2017-11-29vsprintf: refactor %pK code out of pointer()Tobin C. Harding1-43/+54
2017-10-25locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns ...Mark Rutland1-2/+2
2017-07-07Merge tag 'devicetree-for-4.13' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-0/+136
2017-06-27vsprintf: Add %p extension "%pOF" for device treePantelis Antoniou1-0/+136
2017-06-05uuid: rename uuid typesChristoph Hellwig1-2/+2
2017-05-08checkpatch: add ability to find bad uses of vsprintf %p<foo> extensionsJoe Perches1-0/+3
2017-04-02kernel-api.rst: fix output of the vsnprintf() documentationmchehab@s-opensource.com1-3/+3
2017-02-27lib/vsprintf.c: remove %Z supportAlexey Dobriyan1-4/+4
2016-05-20lib/uuid.c: introduce a few more generic helpersAndy Shevchenko1-5/+4
2016-05-20lib/vsprintf: simplify UUID printingAndy Shevchenko1-8/+4
2016-03-17sscanf: implement basic character setsJessica Yu1-1/+58
2016-03-15mm, printk: introduce new format string for flagsVlastimil Babka1-0/+75
2016-02-11vsprintf: kptr_restrict is okay in IRQ when 2Jason A. Donenfeld1-13/+13
2016-01-16lib/vsprintf: factor out %pN[F] handler as netdev_bits()Andy Shevchenko1-9/+16
2016-01-16lib/vsprintf: refactor duplicate code to special_hex_number()Andy Shevchenko1-26/+27
2016-01-16lib/vsprintf.c: warn about too large precisions and field widthsRasmus Villemoes1-4/+24
2016-01-16lib/vsprintf.c: help gcc make number() smallerRasmus Villemoes1-12/+14
2016-01-16lib/vsprintf.c: expand field_width to 24 bitsRasmus Villemoes1-20/+22
2016-01-16lib/vsprintf.c: eliminate potential race in string()Rasmus Villemoes1-19/+9
2016-01-16lib/vsprintf.c: move string() below widen_string()Rasmus Villemoes1-31/+31
2016-01-16lib/vsprintf.c: pull out padding code from dentry_name()Rasmus Villemoes1-15/+31
2016-01-06lib/vsprintf: add %*pg format specifierDmitry Monakhov1-0/+29
2015-11-06lib/vsprintf.c: update documentationRasmus Villemoes1-3/+4
2015-11-06lib/vsprintf.c: remove SPECIAL handling in pointer()Rasmus Villemoes1-1/+1
2015-11-06lib/vsprintf.c: also improve sanity check in bstr_printf()Rasmus Villemoes1-1/+1
2015-11-06lib/vsprintf.c: handle invalid format specifiers more robustlyRasmus Villemoes1-10/+21
2015-11-06printk: synchronize %p formatting documentationMartin Kletzander1-32/+8
2015-07-20lib/vsprintf.c: Include clk.hStephen Boyd1-0/+1
2015-04-17lib/vsprintf.c: improve put_dec_trunc8 slightlyRasmus Villemoes1-6/+4
2015-04-17lib/vsprintf.c: even faster binary to decimal conversionRasmus Villemoes1-118/+128
2015-04-15lib/string_helpers.c: change semantics of string_escape_memRasmus Villemoes1-2/+6
2015-04-15lib/vsprintf.c: fix potential NULL deref in hex_stringRasmus Villemoes1-4/+12
2015-04-15lib/vsprintf: add %pC{,n,r} format specifiers for clocksGeert Uytterhoeven1-0/+37
2015-04-15lib/vsprintf.c: another small hackRasmus Villemoes1-3/+4
2015-04-15lib/vsprintf.c: eliminate duplicate hex string arrayRasmus Villemoes1-5/+2
2015-04-15lib/vsprintf.c: reduce stack use in number()Rasmus Villemoes1-6/+1
2015-04-15lib/vsprintf.c: eliminate some branchesRasmus Villemoes1-19/+11
2015-02-13lib/vsprintf: implement bitmap printing through '%*pb[l]'Tejun Heo1-0/+94
2015-02-12lib/vsprintf.c: replace while with do-while in skip_atoiRasmus Villemoes1-1/+2
2015-02-12lib/vsprintf.c: improve sanity check in vsnprintf()Rasmus Villemoes1-1/+1
2015-02-12lib/vsprintf.c: consume 'p' in format_decodeRasmus Villemoes1-4/+3
2014-10-14lib/vsprintf: add %*pE[achnops] format specifierAndy Shevchenko1-0/+71
2014-09-09Documentation: Docbook: Fix generated DocBook/kernel-api.xmlMasanari Iida1-1/+1
2014-06-04lib/vsprintf.c: fix comparison to boolFabian Frederick1-2/+2
2014-04-03vsprintf: remove %n handlingRyan Mallon1-36/+9
2014-02-26vsprintf: Add support for IORESOURCE_UNSET in %pRBjorn Helgaas1-4/+9
2014-01-23vsprintf: add %pad extension for dma_addr_t useJoe Perches1-6/+27
2013-11-15vsprintf: ignore %n againKees Cook1-11/+9
2013-11-13lib/vsprintf.c: document formats for dentry and struct fileOlof Johansson1-0/+2
2013-11-13vsprintf: check real user/group id for %pKRyan Mallon1-3/+30
2013-09-04add formats for dentry/file pathnamesAl Viro1-0/+82
2013-07-09Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-2/+122
2013-07-01lib: vsprintf: add IPv4/v6 generic %p[Ii]S[pfs] format specifierDaniel Borkmann1-2/+122
2013-05-29sprintf: hex_string(): fix commentSteven Rostedt1-1/+1
2013-04-30vsprintf: Add extension %pSR - print_symbol replacementJoe Perches1-5/+13
2013-02-21lib/vsprintf.c: add %pa format specifier for phys_addr_t typesStepan Moskovchenko1-0/+7
2012-12-17simple_strto*: annotate function as obsoleteEldad Zack1-0/+8
2012-12-17sscanf: don't ignore field widths for numeric conversionsJan Beulich1-43/+53
2012-12-17lib/vsprintf.c: fix handling of %zd when using ssize_tJason Gunthorpe1-1/+4
2012-10-06lib/vsprintf.c: improve standard conformance of sscanf()Jan Beulich1-19/+14
2012-10-06lib/vsprintf: update documentation to cover all of %p[Mm][FR]Andy Shevchenko1-1/+4
2012-10-06lib: vsprintf: fix broken commentsGeorge Spelvin1-7/+7