aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2019-06-08 12:34:14 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2019-06-08 13:56:07 +0200
commit525b88e12808b3f9f573e1e48e6e70774196e69f (patch)
tree26199d7625f582fe0b496f10263a9dc318149d90
parent2d26ddfa556f431ffe9e1ee541f723d5678bbddd (diff)
downloadman-pages-525b88e12808b3f9f573e1e48e6e70774196e69f.tar.gz
fanotify.7: Reformat program output to fit in 80 columns
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man7/fanotify.712
1 files changed, 7 insertions, 5 deletions
diff --git a/man7/fanotify.7 b/man7/fanotify.7
index a4c522bd28..3c49623a1f 100644
--- a/man7/fanotify.7
+++ b/man7/fanotify.7
@@ -759,7 +759,8 @@ Listening for events stopped.
.EX
# ./fanotify_fid /home/user
Listening for events.
-FAN_CREATE (file created): Directory /home/user has been modified.
+FAN_CREATE (file created):
+ Directory /home/user has been modified.
All events processed successfully. Program exiting.
$ touch /home/user/testing
@@ -768,7 +769,8 @@ $ touch /home/user/testing
# ./fanotify_fid /home/user
Listening for events.
-FAN_CREATE | FAN_ONDIR (subdirectory created): Directory /home/user has been modified.
+FAN_CREATE | FAN_ONDIR (subdirectory created):
+ Directory /home/user has been modified.
All events processed successfully. Program exiting.
$ mkdir \-p /home/user/testing
@@ -1051,10 +1053,10 @@ main(int argc, char **argv)
}
if (metadata->mask == FAN_CREATE)
- printf("FAN_CREATE (file created): ");
+ printf("FAN_CREATE (file created):");
if (metadata->mask == FAN_CREATE | FAN_ONDIR)
- printf("FAN_CREATE | FAN_ONDIR (subdirectory created): ");
+ printf("FAN_CREATE | FAN_ONDIR (subdirectory created):");
/* metadata->fd is set to FAN_NOFD when FAN_REPORT_FID is enabled.
To obtain a file descriptor for the file object corresponding to
@@ -1088,7 +1090,7 @@ main(int argc, char **argv)
}
path[path_len] = \(aq\e\0\(aq;
- printf("Directory \(aq%s\(aq has been modified.\e\n", path);
+ printf("\etDirectory \(aq%s\(aq has been modified.\e\n", path);
/* Close associated file descriptor for this event */