diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-02-04 21:23:54 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-02-04 21:23:54 +0100 |
commit | db700b4d6bd100636f1efc0209bebab29ea50bab (patch) | |
tree | c051d75e7dc5d6bb5a877bb612bcf0316fcaebbe | |
parent | a514a9168554d9c9525b8fa1f6a4ae134cc9ac94 (diff) | |
download | hurd-db700b4d6bd100636f1efc0209bebab29ea50bab.tar.gz hurd-db700b4d6bd100636f1efc0209bebab29ea50bab.tar.bz2 hurd-db700b4d6bd100636f1efc0209bebab29ea50bab.zip |
mach-defpager: also warn only once about read errors
-rw-r--r-- | mach-defpager/default_pager.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mach-defpager/default_pager.c b/mach-defpager/default_pager.c index 2c30c852..aef700d0 100644 --- a/mach-defpager/default_pager.c +++ b/mach-defpager/default_pager.c @@ -2519,7 +2519,13 @@ ddprintf ("seqnos_memory_object_data_request <%p>: pager_port_unlock: <%p>[s:%d, break; case PAGER_ERROR: - printf("(default pager): data_request read error, lost data\n"); + { + static int warned = 0; + if (!warned) { + printf("(default pager): data_request read error, lost data\n"); + warned = 1; + } + } (void) memory_object_data_error( reply_to, offset, |