diff for duplicates of <1474149151.1954.4.camel@perches.com> diff --git a/a/1.txt b/N1/1.txt index 0b94ced..dc5b412 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -1,15 +1,15 @@ On Sun, 2016-09-18 at 00:40 +0300, Konstantin Khlebnikov wrote: > #define printk_periodic(period, fmt, ...) > ({ -> static unsigned long __prev __read_mostly = INITIAL_JIFFIES - (period); -> unsigned long __now = jiffies; -> bool __print = !time_in_range_open(__now, __prev, __prev + (period)); +> static unsigned long __prev __read_mostly = INITIAL_JIFFIES - (period); +> unsigned long __now = jiffies; +> bool __print = !time_in_range_open(__now, __prev, __prev + (period)); > -> if (__print) { -> __prev = __now; -> printk(fmt, ##__VA_ARGS__); -> } -> unlikely(__print); +> if (__print) { +> __prev = __now; +> printk(fmt, ##__VA_ARGS__); +> } +> unlikely(__print); > }) printk_periodic reads like a thing that would create a @@ -21,9 +21,3 @@ and not be reused (use your choice of # of underscores) unsigned long _period = period; unsigned long _now = now; static unsigned long _prev __read_mostly = etc... - --- -To unsubscribe, send a message with 'unsubscribe linux-mm' in -the body to majordomo@kvack.org. For more info on Linux MM, -see: http://www.linux-mm.org/ . -Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> diff --git a/a/content_digest b/N1/content_digest index bffcc87..6975e8e 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -29,15 +29,15 @@ "On Sun, 2016-09-18 at 00:40 +0300, Konstantin Khlebnikov wrote:\n" "> #define printk_periodic(period, fmt, ...)\n" "> ({\n" - "> static unsigned long __prev __read_mostly = INITIAL_JIFFIES - (period);\n" - "> unsigned long __now = jiffies;\n" - "> bool __print = !time_in_range_open(__now, __prev, __prev + (period));\n" + "> \302\240 static unsigned long __prev __read_mostly = INITIAL_JIFFIES - (period);\n" + "> \302\240 unsigned long __now = jiffies;\n" + "> \302\240 bool __print = !time_in_range_open(__now, __prev, __prev + (period));\n" "> \n" - "> if (__print) {\n" - "> __prev = __now;\n" - "> printk(fmt, ##__VA_ARGS__);\n" - "> }\n" - "> unlikely(__print);\n" + "> \302\240 if (__print) {\n" + "> \302\240 __prev = __now;\n" + "> \302\240 printk(fmt, ##__VA_ARGS__);\n" + "> \302\240 }\n" + "> \302\240 unlikely(__print);\n" "> })\n" "\n" "printk_periodic reads like a thing that would create a\n" @@ -48,12 +48,6 @@ "\n" "\tunsigned long _period = period;\n" "\tunsigned long _now = now;\n" - "\tstatic unsigned long _prev __read_mostly = etc...\n" - "\n" - "--\n" - "To unsubscribe, send a message with 'unsubscribe linux-mm' in\n" - "the body to majordomo@kvack.org. For more info on Linux MM,\n" - "see: http://www.linux-mm.org/ .\n" - "Don't email: <a href=mailto:\"dont@kvack.org\"> email@kvack.org </a>" + "\tstatic unsigned long _prev __read_mostly = etc..." -8320f1430468e3d3964060f94bdcc1bc53b0bd5da9505a2a14158ee7e8707c15 +619e5d5bdbd0634aa25060733b288a7abfa2ef2b75cd8ecda1354a6106c66ea0
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.