File: 0003-disable-version-warning

package info (click to toggle)
drbd-utils 9.22.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 6,756 kB
  • sloc: ansic: 48,975; xml: 11,553; cpp: 9,842; sh: 4,568; makefile: 1,029; perl: 353; ruby: 43
file content (39 lines) | stat: -rw-r--r-- 1,513 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From: Bastian Blank <waldi@debian.org>
Date: Mon, 18 Nov 2019 22:27:25 +0200
Subject: Disable module version warning for sublevel missmatch

Bug-Debian: http://bugs.debian.org/659353

Last-Update: 2014-06-13
Forwarded: no
---
 user/v83/drbdadm_usage_cnt.c | 2 +-
 user/v84/drbdadm_usage_cnt.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/user/v83/drbdadm_usage_cnt.c b/user/v83/drbdadm_usage_cnt.c
index cfdfdc9..2c3b1f1 100644
--- a/user/v83/drbdadm_usage_cnt.c
+++ b/user/v83/drbdadm_usage_cnt.c
@@ -264,7 +264,7 @@ void warn_on_version_mismatch(void)
 	else if (cmp & 0xff00)		/* userland is newer minor version */
 		msg = "please don't mix different DRBD series.";
 	else		/* userland is newer, but only differ in sublevel. */
-		msg = "preferably kernel and userland versions should match.";
+		return;
 
 	fprintf(stderr, "DRBD module version: %u.%u.%u\n"
 			"   userland version: %u.%u.%u\n%s\n",
diff --git a/user/v84/drbdadm_usage_cnt.c b/user/v84/drbdadm_usage_cnt.c
index 53bc9bc..29e2dc2 100644
--- a/user/v84/drbdadm_usage_cnt.c
+++ b/user/v84/drbdadm_usage_cnt.c
@@ -264,7 +264,7 @@ void warn_on_version_mismatch(void)
 	else if (cmp & 0xff00)		/* userland is newer minor version */
 		msg = "please don't mix different DRBD series.";
 	else		/* userland is newer, but only differ in sublevel. */
-		msg = "preferably kernel and userland versions should match.";
+		return;
 
 	fprintf(stderr, "DRBD module version: %u.%u.%u\n"
 			"   userland version: %u.%u.%u\n%s\n",