diff --git a/books/beaglebone-cookbook/07kernel/kernel.rst b/books/beaglebone-cookbook/07kernel/kernel.rst
index 3267873b129367d6e1fa30801e5ad788283f9589..d64ad0eca107ef84ae3b55970998069bc96a8589 100644
--- a/books/beaglebone-cookbook/07kernel/kernel.rst
+++ b/books/beaglebone-cookbook/07kernel/kernel.rst
@@ -523,7 +523,7 @@ Solution
 .. _kernel_hello_patch:
 
 .. literalinclude:: ../code/07kernel/hello.patch
-   :language: text
+   :language: diff
    :caption: Simple kernel patch file (hello.patch)
    :linenos: